← All docs

xml_get_current_byte_index()

Returns the current byte index of the parser.

xml_get_current_byte_index()

function xml_get_current_byte_index(mixed $parser): int

Returns the current byte index of the parser.

Parameters:

  • $parser (mixed)

Returns: int

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how xml_get_current_byte_index is implemented in the compiler, see the internals page.