What is an array?

An array is a list to store a set of values, such as a list of books, a list of people, etc. The values stored in an array are called the array elements. The elements in an array have an order.Each array element has an associated index (also called key) that ius sued to access the element.

PHP allows you to use numbers or strings as the array indices. In PHP, numerical arrays are associative arrays., and asociative arrays are numerical arrays.


Arrays | What is an array? | Creating Arrays | Iterating | Not Beginning at 0 | Initializing to a Range | Modifying | Removing Elements | Removing Duplicate | Changing Size | Key in an Array | Element in an Array | Position of a Value | Largest or Smallest Element | Reversing | Randomizing
© 2008: Hann So
email: hso@voyager.deanza.edu