diff options
Diffstat (limited to 'tests/lang/func_get_arg.001.phpt')
| -rw-r--r-- | tests/lang/func_get_arg.001.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lang/func_get_arg.001.phpt b/tests/lang/func_get_arg.001.phpt new file mode 100644 index 0000000000..b1bbb18699 --- /dev/null +++ b/tests/lang/func_get_arg.001.phpt @@ -0,0 +1,15 @@ +--TEST-- +func_get_arg test +--FILE-- +<?php + +function foo($a) +{ + $a=5; + echo func_get_arg(0); +} +foo(2); +echo "\n"; +?> +--EXPECT-- +2
\ No newline at end of file |
