O'Reilly logo

PHP 7 Zend Certification Study Guide: Ace the ZCE 2017-PHP Exam by Andrew Beak

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

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

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