Return to func_get_arg.001.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang |
1.1 ! misho 1: --TEST-- ! 2: func_get_arg test ! 3: --FILE-- ! 4: <?php ! 5: ! 6: function foo($a) ! 7: { ! 8: $a=5; ! 9: echo func_get_arg(0); ! 10: } ! 11: foo(2); ! 12: echo "\n"; ! 13: ?> ! 14: --EXPECT-- ! 15: 2