note 30272 deleted from function.func-get-args by bjori

From: Date: Tue, 25 Apr 2006 19:11:46 +0000
Subject: note 30272 deleted from function.func-get-args by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109677@lists.php.net to get a copy of this message
Note Submitter: nutbar at innocent dot com ---- Apparently PHP won't let you pass func_get_args() as a paramater to another function, such as call_user_func_array(). Not sure why, but I guess it doesn't hurt *too* much to just assign its value to a variable. By the way, using this and other functions, lets you get one step closer to making easy function macros: function my_printf() { $args = func_get_args(); return call_user_func_array('printf', $args); } Now you can call my_printf() just as if it were printf() itself.

« previous php.notes (#109677) next »