Re: $PHP_SELF vs. functions, arrays and variable
| From: | John Lim | Date: | Fri, 16 Mar 2001 17:56:16 +0000 |
| Subject: | Re: $PHP_SELF vs. functions, arrays and variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44292@lists.php.net to get a copy of this message | ||
Hi Scott,
Good question! $PHP_SELF is a global variable, so you need to declare it in
functions:
function a()
{
global $PHP_SELF;
print $PHP_SELF;
}
John
"Scott Fletcher" <scott@abcoa.com> wrote in message news:98tjgv$40e$1@toye.p.sourceforge.net...
> Hi!
>
> I noticed when using $PHP_SELF in the script, you can use only the
> variables. So, I tried it with the arrays or functions and found that it
> does not work. So, is $PHP_SELF limited to variables only?
>
> Scott
>
>
>
> --
> 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
>