parse_next_tag example


    public function next_tag( $query = null ) {
        $this->parse_query( $query );
        $already_found = 0;

        do {
            if ( $this->bytes_already_parsed >= strlen( $this->html ) ) {
                return false;
            }

            // Find the next tag if it exists.             if ( false === $this->parse_next_tag() ) {
                $this->bytes_already_parsed = strlen( $this->html );

                return false;
            }

            // Parse all of its attributes.             while ( $this->parse_next_attribute() ) {
                continue;
            }

            // Ensure that the tag closes before the end of the document.
Home | Imprint | This part of the site doesn't use cookies.