Interview Questions

How come the code works, but doesn’t for two-dimensional array of mine?

PHP Interview Questions and Answers


(Continued from previous question...)

How come the code works, but doesn’t for two-dimensional array of mine?

Any time you have an array with more than one dimension, complex parsing syntax is required. print "Contents: {$arr[1][2]}" would’ve worked.

(Continued on next question...)

Other Interview Questions