Ver original<?phpfunction foo() { $todo = ''; foreach (func_get_args() as $arg) { $todo .= $arg . ', '; } echo $todo;} foo('pedro', 'juan', 'maria');