note 5240 deleted from func_get_arg by zak
| From: | zak@php.net | Date: | Tue, 05 Dec 2000 07:48:03 +0000 |
| Subject: | note 5240 deleted from func_get_arg by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8410@lists.php.net to get a copy of this message | ||
You may pass any number of extra parameters to a function, regardless of the prototyping. For
example:
<pre>
function printme($x) {
print($x);
print(func_get_arg(2));
}
printme("one ","two");
</pre>
This prints "one two".
In the above function, func_get_arg(1) will return nothing, because the first argument has already
been shunted into a variable.