WordPress Question:
Download Job Interview Questions and Answers PDF
How come the code
<?php print “Contents: $arr[1]“; ?>
works, but
<?php print “Contents: $arr[1][2]“; ?>
doesn’t for two-dimensional array of mine?
Answer:
Any time you have an array with more than one dimension, complex parsing syntax is required. print “Contents: {$arr[1][2]}” would’ve worked. /> - Yes.
Download WordPress (CMS) Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the difference between characters 23 and x23? | Tell me Would you initialize your strings with single quotes or double quotes? |