<?
$class = 'ArrayIterator';
eval("@\$object = new \$class();");
printf("<p>%s class parents: %s</p>\n", $class, print_r(class_parents($object), TRUE));
printf("<p>%s class implements: %s</p>\n", $class, implode(', ', class_implements($object)));
printf("<p>%s class methods: %s</p>\n", $class, implode(', ', get_class_methods($class)));
?>
|