PHP Arrays

These articles explain how arrays work in PHP, and show how to create and manipulate arrays.

Articles in PHP Arrays

Easy Ways to Sort Arrays in PHP - Beginner Tutorial 16 August 2010

Learn how to sort arrays quickly and simply in PHP. This tutorial shows you how to sort indexed, associative and multidimensional arrays using some handy PHP array functions.

Using Multidimensional Arrays in PHP - Intermediate Tutorial 19 July 2010

Learn all about PHP multidimensional (nested) arrays. Shows how to create, manipulate, and loop through multidimensional arrays in PHP.

Using foreach to Loop Through PHP Arrays - Beginner Tutorial 27 May 2010

How to use PHP's foreach construct to loop through PHP array elements.

Counting PHP Array Elements Using count() - Beginner Tutorial 6 May 2010

Explains how to use PHP's count() function to count the elements in an array, and how to loop through an array with count() and a for loop.

Extracting Elements from PHP Arrays with array_slice() - Beginner Tutorial 30 March 2010

Learn how to use PHP's array_slice() to extract a range of elements from any array.

Working With Array Elements in PHP - Beginner Tutorial 19 March 2010

How to read and change PHP array values, how to add and remove array elements, and how to display an entire array.

Creating Arrays in PHP - Beginner Tutorial 10 March 2010

Explains how arrays work in PHP, and shows how to create both indexed and associative arrays.

Follow Elated