RE: ${0} variable basics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux