评:


gettype()能显示一个变量的类型,比如“boolean”, “integer”, “double”, “string”, “array”, “object” 等。

get_class()能显示是哪一个类。

instanceo() 和java类似,判断是否是某个类的实例。