Hey neon
Actually my last post was in response to ahundiak, who said that PHP doesn't support nested functions, and you were right to point out that functions inside classes are always treated as methods.
In that case, what I really need to know is how do I implement a callback reference for a method:
Say I'm parsing XML. I can define startElement() in my script and the following will work:
xml_set_element_handler($xml_parser, "startElement", "endElement");
but if startElement is a method of a class, how do I call the xml_set_element_handler() method?
xml_set_element_handler($xml_parser, "this->startElement", "this->endElement");
??
-Antun