xml_set_start_namespace_decl_handler
(PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8)
Set up start namespace declaration handler
Description
Set a handler to be called when a namespace is declared. Namespace declarations occur inside start tags. But the namespace declaration start handler is called before the start tag handler for each namespace declared in that start tag.
Parameters
handlerDescription
The signature of the handler must be:
handler(XMLParser $parser, string|false $prefix, string $uri): voidprefixThe prefix is a string used to reference the namespace within an XML object. false if no prefix exists.
uriUniform Resource Identifier (URI) of namespace.
Return Values
Always
Changelog
| Version | Description |
|---|