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 O’Reilly online learning.

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