← All docs

xml_get_current_line_number()

Returns the current line number of the parser.

xml_get_current_line_number()

function xml_get_current_line_number(mixed $parser): int

Returns the current line number 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_line_number is implemented in the compiler, see the internals page.