How do I write a function that can accept unlimited number of parameters?
What am trying to do is create a function within a class that wraps the following:
Use func_get_args():
function my_func() { $args = func_get_args(); foreach ($args as $arg) { echo "Arg: $arg\n"; } }