1<?php
2 function some_func($a, $b) {
3 for ($i = 0; $i < func_num_args(); ++$i) {
4 $param = func_get_arg($i);
5 echo "Received parameter $param.\n";
6 }
7 }
8
9 function some_other_func($a, $b) {
10 $param = func_get_args();
11 $param = join(", ", $param);
12 echo "Received parameters: $param.\n";
13 }
14
15 some_func(1,2,3,4,5,6,7,8);
16 some_other_func(1,2,3,4,5,6,7,8);
17?>
18