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

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

user1043

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