Test Your Knowledge
What is the difference between a numeric and an associative array?
What is the main benefit of the
array
keyword?What is the difference between
foreach
andeach
?How can you create a multidimensional array?
How can you determine the number of elements in an array?
What is the purpose of the
explode
function?How can you set PHPâs internal pointer into an array back to the first element of the array?
See Chapter 6 Answers in Appendix A for the answers to these questions.
Get Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition 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.