xml_set_object
PHP 4, PHP 5, PHP 7, PHP 8
xml_set_object - Use XML Parser within an object
Manual
xml_set_object(
XMLParser$parser,
object$object ): bool
This function allows to use parser inside object. All callback functions could be set with xml_set_element_handler etc and assumed to be methods of object.
Parameters
- parser
-
A reference to the XML parser to use inside the object.
- object
-
The object where to use the XML parser.
Return Values
Returns true on success or false on failure.
Changelog
Version | Description |
8.0.0 | parser expects an XMLParser instance now; previously, a resource was expected. |