← All docs

xml_parser_create()

Creates a new XML parser object.

xml_parser_create()

function xml_parser_create(?string $encoding = null): mixed

Creates a new XML parser object.

Parameters:

  • $encoding (?string), default null, optional

Returns: mixed

Availability

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

Internals

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