Search Results
Sets the notation declaration handler function for the XML parser parser. A notation declaration is part of the document's DTD and has the following format:
The xml_set_notation_decl_handler () function specifies a function to be called when the parser finds a notation declaration in the XML document. Note: The handler parameter can also be an array containing an object reference and a method name.
The xml_set_notation_decl_handler () function is a PHP built-in function that sets a user-defined function as the handler for notation declarations in an XML parser.
If a handler function is set to an empty string, or false, the handler in question is disabled. Note: Instead of a function name, an array containing an object reference and a method name can also be supplied.
Mar 13, 2026 · Sets the notation declaration handler function for the XML parser parser.
À partir de PHP 8.4.0, la validité du callable est vérifiée lors de la configuration du gestionnaire, et non au moment de son appel. Cela signifie que xml_set_object () doit être appelé avant de définir une méthode sous forme de chaîne comme rappel.
The PHP XML Parser xml_set_notation_decl_handler () function is used to set a function to be called when the parser finds a notation declaration in the XML document. The handler parameter can also be an array containing an object reference and the method name.
