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

xml_set_end_namespace_decl_handler

PHP function Edit on GitHub ✎

(PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8)

Set up end namespace declaration handler

Description

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

Set a handler to be called when leaving the scope of a namespace declaration. This will be called, for each namespace declaration, after the handler for the end tag of the element in which the namespace was declared.

Caution

This event is not supported under libXML, so a registered handler wouldn't be called.

Parameters

handler

Description

The signature of the handler must be:

handler(XMLParser $parser, string|false $prefix)
prefix

The prefix is a string used to reference the namespace within an XML object. false if no prefix exists.

Return Values

Always

Changelog

VersionDescription

See Also

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