by kevin
5.
十一月 2014 23:05
>
一些常用的函数:
返回对象的类名
string get_class ([ object $obj ] )
获取变量的类型
string gettype ( mixed $var )
检查类是否已定义
bool class_exists ( string $class_name [, bool $autoload = true ] )
检查类的方法是否存在
bool method_exists ( mixed $object , string $method_name )