getChar example


    public function parse($filter = false)
    {
        $selector = $this->parseSelector($filter);
        //Throw an exception if the end has not been reached         if (($char = $this->getChar()) !== null) {
            throw new Exception("Invalid syntax '$char'");
        }
        return $selector;
    }

    /** * Parses a selector * * @param bool $filter True if the selector must be used for a filter * * @return Node\Selector * * @throws Exception */
Home | Imprint | This part of the site doesn't use cookies.