note 13661 added to function.func-num-args.php
| From: | sailux at sailux dot net | Date: | Wed, 27 Jun 2001 23:13:41 +0000 |
| Subject: | note 13661 added to function.func-num-args.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14700@lists.php.net to get a copy of this message | ||
At PHP 4.0.4, notice the result of func_get_arg! "func_get_arg(2)" is not correct.
--------------------------------------
function printme($x)
{
print($x);
print(func_get_arg(1));
}
printme("one ","two");
--------------------------------------
This prints "one two", not like ak@avatartech.com's note.
http://www.php.net/manual/en/function.func-num-args.php