©  Steve Prettyman 2017

Steve Prettyman, PHP Arrays, 10.1007/978-1-4842-2556-1_2

2. Simple Arrays

Steve Prettyman

(1)Key West, Florida, USA

After completing this chapter, the student will be able to…

  • Define and describe the advantages in using arrays

  • Create an html form that validates information containing an html array

  • Create a simple PHP array

  • Save values into a simple PHP array

  • Display values in a simple array

  • Add values from an html form into a simple array

  • Validate values before placing them into an array

2.1 What Are Arrays? Why Do We Need to Use Them?

Whenever a program uses information, that information must be stored in the memory of the computer. Individual information can be stored by creating a property.

$propertyname = value;

Property names ...

Get PHP Arrays: Single, Multi-dimensional, Associative and Object Arrays in PHP 7 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.