Chapter 7. Working with Arrays and Objects

Arrays and objects are used to store and organize data. PHP includes a large number of functions that enable you to create, modify, and manipulate arrays. The object-oriented programming structures found in many programming languages are also evident in PHP.

In this chapter, you learn the basics of working with arrays and objects:

  • How to create and manipulate arrays using the myriad array-related functions built into PHP

  • How to create and manipulate objects and the data they contain

Get Sams Teach Yourself PHP, MySQL® and Apache All in One 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.