简介:这是php参数的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。
class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=326452' scrolling='no'> 通过参数表可以传递信息到函数,这个表可以是变量或常量以逗号(,)分隔构成的。PHP3支持使用值来传递变量(默认),通过调用传递,和默认的参数值.可变长度的参数列表目前不被支持,但是可以通过传递数组来实现.
function takes_array($input) {
echo "$input[0] + $input[1] = ", $input[0]+$input[1];
}