Hey everyone,
I'm studying for my Zend PHP 5 Certification Exam and I came across a question that I was hoping I could get an explanation for.
The question lists a few choices and asks which of the choices are valid PHP variables.
The options are:
[*]@$foo
[*]&$variable
[*]${0x0}
[*]$variable
[*]$0x0
I know what the answers are, but I don't know why ${0x0} can be a variable. Doesn't this evaluate to 0? If so, then why would it allow me to create a variable that starts with a number?
Is the only way that I can call it using the syntax ${0x0} or is there something else I'm missing?
Simply curious.
Thanks for the help!