PHP
Working with ArraysPHP - Working with Arrays
Working with Arrays
Accessing All Elements of Numerical Arrays
Accessing All Elements of Associative Arrays
Accessing All Array Elements in Nested Arrays
Turning an Array into Variables
Converting Strings to Arrays
Converting Arrays to Strings
Sorting Arrays Alphabetically
Sorting Associative Arrays Alphabetically
Sorting Nested Arrays
Sorting Nested Associative Arrays
Sorting IP Addresses (as a Human Would)
Sorting Anything
Sorting with Foreign Languages
Applying an Effect to All Array Elements
Filtering Arrays
Getting Random Elements Out of Arrays
Date and Time
When simple variables are just not good enough, arrays come into play. The array section in the PHP manual, available at http://php.net/array, lists approximately 80 functions that are helpful. Therefore, this tutorial could be filled with array-related code alone. However, not all of these functions are really used often. Therefore, this tutorial presents the most important problems you'll have to solve when working with arraysand, of course, solutions for these problems.