Return to 010.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang |
1.1 ! misho 1: --TEST-- ! 2: Testing function parameter passing with a return value ! 3: --FILE-- ! 4: <?php ! 5: function test ($b) { ! 6: $b++; ! 7: return($b); ! 8: } ! 9: $a = test(1); ! 10: echo $a; ! 11: ?> ! 12: --EXPECT-- ! 13: 2