O'Reilly logo

PHP for Teens by Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Arrays

You already learned a little about arrays, those pesky little sets of variables, and in this chapter, we are going to review what we already know and learn a lot more about them. Arrays are very useful in PHP programming, and you will find them in probably every advanced program you see. When using a form to submit a value, the variables are stored in an array, which is passed along to the new page. This array is used for calculations and data recall.

PHP documentation explains an array as an ordered map that has a set of keys that each has a value. You create the keys in the array; keys are names that reference the individual items in an array. Sometimes a set of consecutive numbers is used, and other times a set of strings ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required