php-src/tests/lang/func_get_arg.001.phpt

15 lines
132 B
PHP

--TEST--
func_get_arg test
--FILE--
<?php
function foo($a)
{
$a=5;
echo func_get_arg(0);
}
foo(2);
echo "\n";
?>
--EXPECT--
2