note 36744 deleted from function.func-get-args by didou
| From: | didou@php.net | Date: | Tue, 21 Oct 2003 07:58:16 +0000 |
| Subject: | note 36744 deleted from function.func-get-args by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58973@lists.php.net to get a copy of this message | ||
Note Submitter: robert@example.com
----
Apparently, the func_get_args also carry the superglobals into any user-defined function as the
"first argument".
For example:
<?
// Given that you have use any superglobals.
function foo () {
$argv = func_get_args();
print_r($argv);
}
foo("FOO");
?>
$argv[0] = will be the array which contains the superglobals.
$argv[1] = "FOO";