diff options
Diffstat (limited to 'tests/lang/010.phpt')
-rw-r--r-- | tests/lang/010.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/lang/010.phpt b/tests/lang/010.phpt new file mode 100644 index 0000000..603abe3 --- /dev/null +++ b/tests/lang/010.phpt @@ -0,0 +1,13 @@ +--TEST-- +Testing function parameter passing with a return value +--FILE-- +<?php +function test ($b) { + $b++; + return($b); +} +$a = test(1); +echo $a; +?> +--EXPECT-- +2 |