显示下拉菜单

is_callable()

« is_bool | is_double »
<?php
$bool 
is_callable (
    
?// callable $name
    
?// [bool $syntax_only = false]
    
  // [string &$callable_name]
);
?>
结果
$bool = true
示例
#1 is_callable  ("someFunction",
 
false)
#2 is_callable  ("is_callable")
#3 is_callable  ([=> "Exception"=> "getMessage"],
 
true,
 
$callable_name)
另请参阅
function_exists, method_exists