© Frank M. Kromann 2018
Frank M. KromannBeginning PHP and MySQLhttps://doi.org/10.1007/978-1-4302-6044-8_5

5. Arrays

Frank M. Kromann1 
(1)
Aliso Viejo, CA, USA
 

Much of your time as a programmer is spent working with datasets. Some examples of datasets include the names of all employees at a corporation; the U.S. presidents and their corresponding birth dates; and the years between 1900 and 1975. In fact, working with datasets is so prevalent that a means for managing these groups within code is a common feature of all mainstream programming languages. Within the PHP language, this feature is known as an array, and it offers an ideal way to store, manipulate, sort, and retrieve datasets.

This chapter discusses PHP’s array support and the language’s ...

Get Beginning PHP and MySQL: From Novice to Professional 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.