note 17392 added to function.func-num-args

From: Date: Thu, 06 Dec 2001 17:58:37 +0000
Subject: note 17392 added to function.func-num-args
Groups: php.notes 
Request: Send a blank email to php-notes+get-21719@lists.php.net to get a copy of this message
here is what may not be entirely obvious. **please forgive me if this was the point of the previous post. i cant find the post from ak@avatartech.com to see what you were talking about* The output is "one two" because the first statement print($x) is printing arg(0) or the first argument... func_get_arg(1) is accually printing the second argument because the arg list is a base zero array. not a 1 base array. ~ Frank Mattia CEO/Chief Engineer Mattia & Harris Design Solutions ~ -- http://www.php.net/manual/en/function.func-num-args.php http://master.php.net/manage/user-notes.php?action=edit+17392 http://master.php.net/manage/user-notes.php?action=delete+17392 http://master.php.net/manage/user-notes.php?action=reject+17392

« previous php.notes (#21719) next »