Creating Arrays

Images To view the accompanying video for this lesson, please visit

PHP is capable of managing data in a more powerful manner than simply via variables. One example of this is PHP arrays, which you can think of as collections of variables grouped together. For example, a good metaphor for an array might be a filing cabinet, with each drawer representing a different variable, as shown in Figure 7-1.


FIGURE 7-1 ...

Get PHP now with O’Reilly online learning.

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