parse_next_attribute example

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.             if ( $this->bytes_already_parsed >= strlen( $this->html ) ) {
                return false;
            }

            $tag_ends_at = strpos( $this->html, '>', $this->bytes_already_parsed );
            if ( false === $tag_ends_at ) {
                return false;
            }
Home | Imprint | This part of the site doesn't use cookies.