O'Reilly logo

Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition by Robin Nixon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Test Your Knowledge

  1. What is the difference between a numeric and an associative array?

  2. What is the main benefit of the array keyword?

  3. What is the difference between foreach and each?

  4. How can you create a multidimensional array?

  5. How can you determine the number of elements in an array?

  6. What is the purpose of the explode function?

  7. 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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required