© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
D. PowersPHP 8 Solutionshttps://doi.org/10.1007/978-1-4842-7141-4_8

8. Working with Arrays

David Powers1  
(1)
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 ...

Get PHP 8 Solutions: Dynamic Web Design and Development Made Easy 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.