note 5241 deleted from function.func-get-args by irc-html
| From: | irc-html@php.net | Date: | Sat, 12 Jan 2002 23:15:22 +0000 |
| Subject: | note 5241 deleted from function.func-get-args by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24760@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.