<?php
require_once "sqlftest.php";
test();
?>
sqlftest.php 内容如下
<?php>
function test(){
echo "<br>=== in function test==== <br>";
}
?>
运行结果如下:
function test(){ echo "
=== in function test====
"; } ?>
Fatal error: Call to undefined function test() in H:\xampp\htdocs\jieyue\index.php on line 3
为何失败???为何找不到test(); 小白白在此谢谢!!!
2 个解决方案
#1
require 的路径是否正确
#2
<?php
> 画蛇添足了吧?
function test(){
echo "<br>=== in function test==== <br>";
}
?>
function test(){
echo "<br>=== in function test==== <br>";
}
?>
#1
require 的路径是否正确
#2
<?php
> 画蛇添足了吧?
function test(){
echo "<br>=== in function test==== <br>";
}
?>
function test(){
echo "<br>=== in function test==== <br>";
}
?>