In a recently posted tutorial on the TutsPlus.com site, author Sajal Soni gets back to the basics and covers the use of arrays in PHP.
In this post, you'll learn the basics of arrays in PHP. You'll learn how to create an array and how to use associative and multidimensional arrays, and you'll see lots of examples of arrays in action.
The tutorial then starts with a brief introduction to what arrays are and how they're defined. From there it shows:
- how to access array elements
- types of arrays
- some useful array-related functions
Each item (and function example) comes with a code snippet to show it in use as well as a brief summary of what's happening.