note 36744 added to function.func-get-args

From: Date: Tue, 21 Oct 2003 07:54:33 +0000
Subject: note 36744 added to function.func-get-args
Groups: php.notes 
Request: Send a blank email to php-notes+get-58972@lists.php.net to get a copy of this message
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"; ---- Manual Page -- http://www.php.net/manual/en/function.func-get-args.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36744 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36744&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36744&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58972) next »