[""] versus ->
| From: | Christoph Starkmann | Date: | Tue, 14 May 2002 15:08:37 +0000 |
| Subject: | [""] versus -> | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97548@lists.php.net to get a copy of this message | ||
Hi there.
I hope this is not a too stupid question.
When -as I used to- using $HTTP_POST_VARS, I can write the following:
echo $HTTP_POST_VARS->somevar;
which will, of course, echo the value stored in somevar sent via POST,
same as if I wrote
echo $HTTP_GET_VARS->somevar;
So far, so goot. But this doesn't seem to work with $_REQUEST.
Here it looks like I had to use $_REQUEST["somevar"].
It's not that this would not be possible. But on the one hand I
think the "arrow-notation" is nicer and easier to read, on the other
hand I would be quite interested in the WHYNOT behind this ;)
Can you give me a hint? Or at least some place where I could start reading
and would find an explanation, not only "you have to use..."?
Thanxx
Kiko
--
It's not a bug, it's a feature.
christoph starkmann
http://www.gruppe-69.com/
mailto:kiko@gruppe-69.com
--