Test Your Knowledge: Questions
- Question 6-1
What is the difference between a numeric and an associative array?
- Question 6-2
What is the main benefit of the
array
keyword?- Question 6-3
What is the difference between
foreach
andeach
?- Question 6-4
How can you create a multidimensional array?
- Question 6-5
How can you determine the number of elements there are in an array?
- Question 6-6
What is the purpose of the
explode
function?- Question 6-7
How can you set PHP’s internal pointer into an array back to the first element of the array?
See the section Chapter 6 Answers in Appendix A for the answers to these questions.
Get Learning PHP, MySQL, and JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.