note 30068 added to function.func-get-arg

From: Date: Wed, 05 Mar 2003 18:12:21 +0000
Subject: note 30068 added to function.func-get-arg
Groups: php.notes 
Request: Send a blank email to php-notes+get-44888@lists.php.net to get a copy of this message
Don't make the mistake that I did in assuming that get_func_arg(1) can be used like it's an array. If you try to check if it is set like empty(get_func_arg(1)) or is_set(get_func_arg(1)) will return a parse error. Using if (get_func_arg(1)) { ... } without a second argument will return a warning (this may or may not display, depending on your error settings). -- http://www.php.net/manual/en/function.func-get-arg.php http://master.php.net/manage/user-notes.php?action=edit+30068 http://master.php.net/manage/user-notes.php?action=delete+30068 http://master.php.net/manage/user-notes.php?action=reject+30068

« previous php.notes (#44888) next »