php8.5
Home/ Manual/ xml / functions/ xml_set_default_handler

xml_set_default_handler

PHP function Edit on GitHub ✎

(PHP 4, PHP 5, PHP 7, PHP 8)

Set up default handler

Description

xml_set_default_handler(XMLParser $parser, callable|string|null $handler): true

Sets the default handler function for the XML parser parser.

Parameters

handler

Description

The signature of the handler must be:

handler(XMLParser $parser, string $data): void
data

data contains the character data. This may be the XML declaration, document type declaration, entities or other data for which no other handler exists.

Return Values

Always

Changelog

VersionDescription

Source: reference/xml/functions/xml-set-default-handler.xml · from the official PHP manual (php/doc-en)