<?php
// sample code for Variable-length argument lists kind of functions
function me($iAnmDefault='2')
{ 
  $arguments = func_get_args();
  /* see carefully func_get_args() works for only the arguments 
    which are passed in function call and not for default arguments.
  */ 
  foreach($arguments as $arg)
   {
     echo $arg;
   }
  echo "\n";
}
me('1');
me('1','2');
me('1','2','3');
?>
