RE: [PHP] global variables
| From: | Rodino, Justin | Date: | Mon, 24 Sep 2001 18:58:16 +0000 |
| Subject: | RE: [PHP] global variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68584@lists.php.net to get a copy of this message | ||
global $genpasswd;
_______________________________________
Justin Bain Rodino
Technology Analyst/Systems Engineer
p. 219.524.1000
f. 219.524.1001
e. justin@elkhart.net
> -----Original Message-----
> From: Peter [mailto:php_guy@visors.com.hk]
> Sent: Monday, September 24, 2001 1:28 PM
> To: PHP List
> Subject: [PHP] global variables
>
>
> Hi,
>
> I am have a function in which I have created a variable in
> it called $genpassword.
>
> I find that I am unable to carry this variable over to the
> the other scripts to use because it is a local variable and
> its value exists only in the function.
>
> Is there anyway that I can take the value in $genpassword, a
> local variable and change it into a global variable so that
> other scripts will recognize it?
>
> Thanks.
>
> Peter
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net To contact the list
> administrators, e-mail: php-list-admin@lists.php.net
>