Re: [PHP] $PHP_SELF vs. functions, arrays and variable

2001-03-16 Thread John Lim
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" <[EMAIL PROTECTED]> wrote in message 98tjgv$40e$[EMAIL PROTECTED]">news:98tjgv$40e$[EMAIL PROTECTED]... > Hi! > > I

[PHP] $PHP_SELF vs. functions, arrays and variable

2001-03-16 Thread Scott Fletcher
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: [EM