|
<?php
function test($arg="test") ==> 这儿应该是 给形参一个 默认值 (test)吧!
{
echo "arg=$arg<br>";
}
test();
test("just a test"); ===>调用函数 test 其参数值为 just a test .
?> ====>结果就是显示: "arg=just a test<br>"
还有一条是这样的
<?php
function func1()
{
echo "hello!<br>";
}
function func2()
{
echo "hello the world<br>";
}
temp1="func1"; ===>这儿应该是一种 函数的引用吧..
temp2="func2"
$temp1(); ===> 调用函数吗!
$temp2();
?>
====================================
小生解释,理解来自 Perl.
|