這段 code 可以抓出 php / codeigniter 定義過的 class

[code language=’php’]
$data = get_declared_classes();

foreach ($data as $value) {
$extensions = get_class_methods($value);
print “class is $value, methods are: “;
print_r($extensions);
}
[/code]