welcomewiki has just posted in the PHP Forum forum of Wiki Newforum under the title of PHP Arrays.
This thread is located at http://www.wikinewforum.com/showthread.php?t=5856
Here is the message that has just been posted:
***************
*Example 1*
In this example the ID key is automatically assigned:
$names = array("Peter","Quagmire","Joe"); *Example 2*
In this example we assign the ID key manually:
$names[0] = "Peter";
$names[1] = "Quagmire";
$names[2] = "Joe";
The ID keys can be used in a script:
<?php $names[0] = "Peter";
$names[1] = "Quagmire";
$names[2] = "Joe"; echo $names[1] . " and " . $names[2] .
" are ". $names[0] . "'s neighbors";
?>
he code above will output:
Quagmire and Joe are Peter's neighbors
***************