标签归档:function_exists

php中检测函数是否存在函数 function_exists

php教程检测函数是否存在函数 function_exists  语法 bool function_exists ( string $function_name ) 检查的定义的函数的列表,同时内置(内部)和用户定义的,为function_name。 返回值 返回true,如果function_name存在,是一个函数,否则返回false。 //如果您使用suhosin.executor.func.blacklist而不是在你的php.ini disabled_functions,function_exists将返回true为功能。我用这个有与suhosin.executor.func.bla … 阅读全文