Warning: func_get_arg() expects exactly 1 parameter, 0 given in

PHP
  $func_data = array();
  for($i = 0;$i < func_num_args();$i++)
  {
    array_push($func_data,func_get_arg($i));
  }
Source

Also in PHP: