RE: ${0} variable basics
| From: | Domain nikha . org | Date: | Mon, 25 Aug 2014 10:04:03 +0000 |
| Subject: | RE: ${0} variable basics | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-323790@lists.php.net to get a copy of this message | ||
Negin Nickparsa am Montag, 25. August 2014 - 01:19:
> why ${0} is valid but ${0 is not valid?
> it means that curly braces evaluate what's inside them and that's why we
> cannot have ${0?
>
> variables shouldn't start from 0 so it means that it started from braces?
> if yes why I cannot have ${0? and what is the variable here finally? $0 is
> what it interprets? if yes so it is not a legal variable
> I am totally mixed up.
>
>
> Sincerely
> Negin Nickparsa
>
Hi, I suppose, that ${0} is interpreted as type "string". And that's legal.
And ${0 is parsed as an unbalanced curly brace. And that's illegal...
May be ;-)
Cheers Niklaus