Re: . (dot) get variables
| From: | Zak Greant | Date: | Wed, 21 Jun 2000 22:50:28 +0000 |
| Subject: | Re: . (dot) get variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2551@lists.php.net to get a copy of this message | ||
At 11:19 PM 6/21/00 +0100, Faisal Nasim wrote:
| At 03:02 PM 6/21/00 -0700, Charles Killian wrote: | >Why is it when you name a get variable .var it turns into _var during php | >execution? | >Is there any benifit to this? | | Valid variable names in PHP can only contain alphanumerics and | underscores. The . is translated to a slash so that the variable can be | put passed to php from cgi. _ is an underscore and not a 'slash'.Mental typo - see previous sentence.
from cgi? You're mistaken.You are correct - the variable is not 'passed' to PHP from CGI. Instead PHP parses the values out of environment variables set by the server. Ciao, Zak Greant Creative Director Nucleus Information Service Inc. "A camel is a horse designed by a committee." - Alex Issigonis (Designer of the Austin Mini)