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, PHP 8)
xml_get_current_byte_index — Obtém índice de bytes atual para um analisador XML
Obtém o índice de bytes atual do analisador XML fornecido.
parserUma referência ao analisador XML para obter o índice de bytes.
Retorna em qual índice de bytes o analisador está atualmente em seu buffer de dados (começando em 0).
| Versão | Descrição | 
|---|---|
| 8.0.0 | O parâmetro parseragora espera uma instância de XMLParser;
  anteriormente, um resourcexmlválido era esperado. | 
Esta função retorna o índice de bytes de acordo com o texto codificado em UTF-8 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.