x
 
<!DOCTYPE html>
<html>
<body>
<?php
function test1(){
}
echo "test1 是可调用的吗?" . is_callable("test1"); // 输出 1 (true)
echo "<br>";
echo "test2 是可调用的吗?" . is_callable("test2"); // 输出空 (false)
?>
</body>
</html>