php -- 检查是否存在 1、检查变量是否存在:isset() 2、检查常量是否存在:defined() 3、检查方法是否存在:function_exists() 4、检查类是否存在:class_exists()