protected function findVariable($i, $escape)
    {
        $close = $this->bars[1] . $this->bars[1];

        if ($escape) {
            $close = $close . $this->bars[1];
        }

        for (; substr($this->source, $i, strlen($close)) !== $close;
        $i++) {
        }

        return $i + strlen($close);
    }
protected function findVariable($i, $escape)
    {
        $close = $this->bars[1] . $this->bars[1];

        if ($escape) {
            $close = $close . $this->bars[1];
        }

        for (; substr($this->source, $i, strlen($close)) !== $close;
        $i++) {
        }

        return $i + strlen($close);
    }
protected function findVariable ( $ i , $ escape ) { $ close = $ this -> bars [ 1 ] . $ this -> bars [ 1 ] ; if ( $ escape ) { $ close = $ close . $ this -> bars [ 1 ] ; } for ( ; substr ( $ this -> source , $ i , strlen ( $ close ) ) !== $ close ; $ i ++ ) { } return $ i + strlen ( $ close ) ; }
Since we know where the start is,
we need to find the end in the source

@param *int  $i
@param *bool $escape

@return int
Since we know where the start is we need to find the end in the source