PHP BASICS - Question 3

32 views
Skip to first unread message

shaded2

unread,
Aug 23, 2012, 2:24:33 PM8/23/12
to zend-certificat...@googlegroups.com
Which of the following is not valid PHP code?

A. $_10
B. ${“MyVar”}
C. &$something
D. $10_somethings
E. $aVaR

Jacques Laurent

unread,
Aug 23, 2012, 4:22:52 PM8/23/12
to zend-certificat...@googlegroups.com
Answer: D
--
Thanks,
Jacques Laurent
Phedamenon, LLC.

Dan Kelly

unread,
Aug 24, 2012, 6:20:40 AM8/24/12
to zend-certificat...@googlegroups.com
I think its B
--
Thanks,
Dan Kelly
http://www.kellywebserv.com
Professional Portfolio 
Customer Testimonials
229-848-3243



~~~~~~~~~~~~~~~~~~~~~~
Add me as a friend! - FACEBOOK
Follow me! - Twitter
Looking for a great deal on Razors?



shaded2

unread,
Aug 28, 2012, 4:15:08 PM8/28/12
to zend-certificat...@googlegroups.com
B is ok, i use it quite often to mix variables and strings into a new variable.  {$foo[0].'bar'}

I think its D, variables cant start with a number. 
Reply all
Reply to author
Forward
0 new messages