<?php
function foo() {
$args = func_get_args();
var_export($args);
}
foo('First arg', 'Second arg');
输出
array (
0 => 'First arg',
1 => 'Second arg',
)
?>
转载于:https://www.cnblogs.com/phpfans/archive/2011/09/27/2192960.html
<?php
function foo() {
$args = func_get_args();
var_export($args);
}
foo('First arg', 'Second arg');
输出
array (
0 => 'First arg',
1 => 'Second arg',
)
?>
转载于:https://www.cnblogs.com/phpfans/archive/2011/09/27/2192960.html