Changes

Jump to: navigation, search

PHP Arrays

382 bytes added, 16:57, 1 June 2007
Accessing Elements in a PHP Array
== Accessing Elements in a PHP Array ==
 
The elements in a PHP array using a numberical key are accessed by referencing the variable contain ing the array, followed by the index into array of the required element enclose din square brackets ([]). We can extend our previous example to display the value contained in the second element of the array (remmeber that the index is zero based so the first element is element 0:

Navigation menu