<?php
require("one.php");
function more_args(){
$args=func_get_args();
for($i=0;$i<count($args);$i++){
echo"第".$i."个参数是:".$args[$i]."<br>";
}
}
more_args("one","two","three",1,2,3);
include("two.php");
function more(){
for($i=0;$i<func_num_args();$i++){
echo"第".$i."个参数是:".func_get_arg($i)."<br>";
}
}
more("one","two","three",1,2,3);
function test($n){
echo $n." ";
if($n>0)
test($n-1);
else
echo"<---->";
echo$n." ";
}
test(10);
?>
函数的调用
最新推荐文章于 2011-11-14 15:26:59 发布