17 useful PHP array functions complete with examples

Date Added: Jul 2005
Format: PDF

This document outlines some of the more useful functions in the PHP array toolkit, and features detailed explanations and usage examples.

Like arrays in other programming languages, PHP arrays allow you to store multiple values in a single variable and operate on them as a set. With over 60 functions, PHP offers an extensive array manipulation toolkit that lets you process arrays in almost any way imaginable including:

  • reversing order
  • extracting subsets
  • comparing and sorting
  • recursively processing
  • searching specific values
Of the over 60 PHP array functions, this download has listed only 17. Which functions would you include in the next version of this table?

This download is also available as a TechRepublic article.