© Andrew Beak 2017
Andrew BeakPHP 7 Zend Certification Study Guidehttps://doi.org/10.1007/978-1-4842-3246-0_4

4. Arrays

Andrew Beak
(1)
Grafham, Cambridgeshire, UK
 
In this chapter, we're going to be looking at PHP arrays. PHP arrays are implemented as an ordered map that associates values to keys. There are three types of array in PHP: indexed, associative, and multidimensional.
PHP has a lot of array functions that cover a great many common uses for functions. Before you write a function to operate on an array, you should first check if there is already one. They are implemented in C and so are going to be a lot faster than any function you could write in PHP to achieve the same result. The array manual page1 lists them in one place, and you should ...

Get PHP 7 Zend Certification Study Guide: Ace the ZCE 2017-PHP Exam 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.