variable arguments wish list

From: Date: Tue, 04 Sep 2001 22:37:34 +0000
Subject: variable arguments wish list
Groups: php.general 
Request: Send a blank email to php-general+get-65957@lists.php.net to get a copy of this message
I the Sears Christmas catologe is out, Im going to make a christmas wish too. I wish I could just do this function test() { somefunc(func_get_args(), 'one more arg'); } but I cant, I have todo this, ouch function test() { $args = func_get_args(); eval("somefunc( '". implode("', '", $args) ."', 'one more arg' ); "; } thats just nasty. and dont try putting the func_get_args() in the implode, I get a warning saying dont even try it. plus it would still be ugly. -- Chris Lee lee@mediawaveonline.com

« previous php.general (#65957) next »