©  Steve Prettyman 2017

Steve Prettyman, PHP Arrays, 10.1007/978-1-4842-2556-1_7

7. PHP Functions—Searching, Traversing, and Displaying Arrays

Steve Prettyman

(1)Key West, Florida, USA

After completing this chapter, the student will be able to…

  • Create a simple PHP program to search an array for an existing value and/or key

  • Create a simple PHP program which will traverse through every element of an array without using a loop

  • Create a simple PHP program which will display contents of an array based on a filter

In this final chapter we will take a brief look at the PHP functions to search, traverse, and display arrays. Many of these functions work with multiple array types (single, multidimensional, and/or associative).

All descriptions of the following ...

Get PHP Arrays: Single, Multi-dimensional, Associative and Object Arrays in PHP 7 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.