note 5922 deleted from func_get_arg by zak

From: Date: Tue, 05 Dec 2000 07:48:23 +0000
Subject: note 5922 deleted from func_get_arg by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-8411@lists.php.net to get a copy of this message
The above example will give you a warning and will fail, because the array of function variables is zero-based. There is no function argument with index 2 in that example. You should call func_num_args() before calling func_get_arg() so you don't have this problem.

« previous php.notes (#8411) next »