function getSubclassesOf($parent) { $result = array(); foreach (get_declared_classes() as $class) { if (is_subclass_of($class,$parent)) $result[] = $class; } return $result; }
巧合的是,在Vadim所关注的问题中,这一实施正是07000.
function getSubclassesOf($parent) { $result = array(); foreach (get_declared_classes() as $class) { if (is_subclass_of($class,$parent)) $result[] = $class; } return $result; }
巧合的是,在Vadim所关注的问题中,这一实施正是07000.