Re: HTTP_POST_VARS not and array when used in a function?

From: Date: Wed, 18 Apr 2001 01:39:32 +0000
Subject: Re: HTTP_POST_VARS not and array when used in a function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49102@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote:
It is a normal global variable. Like all other global variables you need to declare the fact that you want the global variable inside a function. Simply put: global $HTTP_POST_VARS; at the top of your function and it will work just fine. Read the section on variable scope in the PHP documentation.
Thanks Rasmus, I should really be tarred and feathered eh :-) Joseph

« previous php.general (#49102) next »