© David Powers 2019
David PowersPHP 7 Solutionshttps://doi.org/10.1007/978-1-4842-4338-1_8

8. Working with Arrays

David Powers1 
London, UK

Arrays are one of the most versatile data types in PHP. Their importance is reflected by the fact that there are more than 80 core functions dedicated to handling data stored in arrays. They can be generally categorized as for modifying, sorting, comparing, and extracting information from arrays. This chapter doesn’t attempt to cover all of them. It focuses on some of the more interesting and useful applications of manipulating arrays.

This chapter covers:
  • Understanding various approaches to modifying the contents of an array

  • Merging arrays

  • Converting an array to a grammatical string

  • Finding all permutations of ...

Get PHP 7 Solutions: Dynamic Web Design Made Easy now with O’Reilly online learning.

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