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.
(PHP 4, PHP 5, PHP 7)
xml_get_current_byte_index — Obtém o índice do byte atual para um analisador XML
$parser
) : intObtém o atual índice do byte de um dado analisador XML.
parser
Uma referência ao analisador XML para conseguir o índice do byte.
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).
Esta função retorna índice do byte de acordo com o texto UTF-8 codificado desconsiderando se a entrada está em outra codificação.
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.