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 — Devuelve el índice del byte actual de un analizador XML
Devuelve el índice del byte actual del analizador XML dado.
parserUna referencia a un analizador XML válido.
xml_get_current_byte_index() devuelve el índice del byte de análisis actual del analizador XML (comienza en 0).
| Versión | Descripción | 
|---|---|
| 8.0.0 | parserahora espera una instancia de XMLParser
  en lugar de un resourcexml. | 
Esta función devuelve el índice del byte de acuerdo con el texto codificado en UTF-8 incluso si la entrada está en otra codificación.
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.