PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<get_classget_declared_interfaces>
Last updated: Mon, 16 Jul 2012

get_declared_classes

(PHP 4, PHP 5)

get_declared_classes -- 返回由已定义类的名字所组成的数组

描述

array get_declared_classes ( void )

返回由当前脚本中已定义类的名字组成的数组。

注: 在 PHP 4.0.1pl2 中,有三个额外的类存在于返回的数组中:stdClass(在 Zend/zend.c 中定义)、OverloadedTestClass(在 ext/standard/basic_functions.c 中定义)和 Directory(在 ext/standard/dir.c 中定义)。

还需要注意的是额外类的出现依赖于你已编译到 PHP 中的库。这意味着你不能使用这些类名定义自己的类。在附录的 预定义类 部分有预定义类的列表。

参见 class_exists()




<get_classget_declared_interfaces>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST