print_r(new PHP_Function('counter'));
which would save a lot of messing around, and writing code for general queries..
Regards
Alan
$obj = new PHP_Function("counter");
print $obj->getName()." was decared in ".$obj->getFileName()." starting at ".$obj->getStartLine().
"and ending at ".$obj->getEndline."\n";
print "Here is what it's docs have to say: "$obj->getDocComment(). "\n";
if($statics = $obj->staticVariables()) {
print $obj->getName()." has the following static variables:\n".print_r($statics);
}
print $obj->invoke();
Something like that.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php