September 2001
Intermediate to advanced
768 pages
32h 45m
English
void xml_set_object(resource parserID, object parser)
| parserID | Reference to a valid parser |
| parser | Object to set the parser to |
Sets an object to a parser.
Returns:
TRUE on success; FALSE on failure
Description:
This function allows the user to create a parser object that has hooks into functions and events of this extension. This is useful for encapsulating the parsing functionality in an object and extending the functionality for use; for example, when writing a print XML tree function for the object.
Version:
PHP 4 >= 4.0b4
Example:
class XMLParser { var $xmlparser; function XMLParser() { $this->xmlparser = xml_parser_create(); xml_set_object($this->xmlparser, $this); xml_set_element_handler($this->xmlparser, ... |
Read now
Unlock full access