
When i first started learning PHP arrays
confused me. I learned Perl first; arrays and variables in Perl are
represented with different symbols. Not so in PHP, an array looks
exactly the same as a variable, it starts with the dollar ($) sign.
$array = array('cat', 'dog', 'fish', 'rabbit');
Think of an array as a variable that can store many separate values. We can access each item in the array.