Friday, December 18, 2009

Chapter 6. Arrays










Chapter 6. Arrays


Variables are great for storing a single piece of information, but what happens when you need to store data for a whole set of information, like the results of a query? For this, you use arrays. Arrays are a special kind of variable that store many pieces of data. Arrays allow you to access any of the values stored in them individually yet still copy and manipulate the array as a whole. Because they are so useful, you'll see arrays used frequently. PHP provides many functions for performing common array tasks such as counting, sorting, and looping through the data.












No comments: