Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001032

Re: [PHP] $PHP_SELF vs. functions, arrays and variable From: John Lim (heyjohnlim <email protected>)
Date: 03/16/01

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 <email protected>> wrote in message news:98tjgv$40e$1 <email protected>
> 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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>