2010-05-21 98 views

回答

0

看看PHP的反射API

$r = new ReflectionClass("domdocument"); 
foreach ($r->getProperties() as $name => $prop) { ... } 
foreach ($r->getMethods() as $name => $method) { ... }