11-28-2009, 03:19 AM
|
#6 (permalink)
|
|
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
|
PHP Code:
class myClass { public function myFunction() { $arguments = func_get_args(); } }
You can then use any number of arguments on that function.
PHP Code:
$obj = new myClass(); $obj->myFunction(); $obj->myFunction(1,'two'); $obj->myFunction(3,4,5,'six');
|
|
|
|