<?php
function printAll() {
  foreach (func_get_args() as $x) 
    echo ;

  $numargs = func_num_args(); 
  for ($i = 0; $i < $numargs; $i++)
    echo func_get_arg($i), ;
}
printAll(4, 3, 5, 6, 4, 3);
printAll(4, 3, 5);
printAll(, , , );
?>