pQuery\HtmlParserBase::parse_php PHP Метод

parse_php() публичный Метод

Parse php tags
public parse_php ( ) : boolean
Результат boolean
    function parse_php()
    {
        $start = $this->pos;
        if ($this->next_pos('?>', false) !== self::TOK_UNKNOWN) {
            $this->pos -= 2;
            //End of file
        }
        $len = $this->pos - 1 - $start;
        $this->status['text'] = $len > 0 ? substr($this->doc, $start + 1, $len) : '';
        $this->status['last_pos'] = ++$this->pos;
        return true;
    }