Exemple #1
0
<?php

$tag = new TAG();
$tag->fileScan();
$a = $tag->tagContentSet();
var_dump($a);
$tag->quoteScan();
$b = $tag->quoteContentSet();
var_dump($b);
class TAG
{
    private $LINE = 1;
    private $TAG = array();
    private $TAG_NUM = 0;
    private $OFFSET = 0;
    private $LINE_SIZE = array();
    private $BUFFER = array();
    private $FILE = "index.html";
    private $QUOTE = array();
    function searchPhp($b)
    {
        $i = strpos($b, "<?php");
    }
    function quoteScan()
    {
        $offset = 0;
        $c = 0;
        $f = false;
        for ($i = 1, $l = count($this->BUFFER); $i < $l + 1; $i++) {
            $next_flag = true;
            while ($next_flag) {