xml_get_current_byte_index

(PHP 4, PHP 5, PHP 7, PHP 8)

xml_get_current_byte_indexObtém o índice do byte atual para um analisador XML

Descrição

xml_get_current_byte_index ( resource $parser ) : int

Obtém o atual índice do byte de um dado analisador XML.

Parâmetros

parser

Uma referência ao analisador XML para conseguir o índice do byte.

Valor Retornado

Esta função retorna false Se parser não se refere a um analisador válido, senão ele retorna qual o índice do byte o analisador está atualmente em seu registro de dados (buffer data) (começando do 0).

Notas

Aviso

Esta função retorna índice do byte de acordo com o texto UTF-8 codificado desconsiderando se a entrada está em outra codificação.

Veja Também

  • xml_get_current_column_index()
  • xml_get_current_line_index()

add a note add a note

User Contributed Notes 1 note

up
0
turan dot yuksel at tcmb dot gov dot tr
18 years ago
The outcome of this function is heavily dependent on the parser implementation used. For example, at the point where the start_element_ callback is called, libxml2 parser consumes the entire element name and attributes, however expat does not.
To Top