Hi. There is only one kind of array in PHP, so while we sometimes say indexed array and associative arrays, as far as PHP is concerned, both are the same type of array.
The => is just used to assign a value to a key.
According to php.net, the array construct is:
array( [key =>] value
, ...
)
// key may be an integer or string
// value may be any value
So, you see, specifying the key is purely optional, and it defaults to sequential index numbers if you don't use it, so the following are exactly the same:
array('one', 'two', 'three');
array(0 => 'one', 1 => 'two', 2 => 'three');
So, in your example, it is assigning some values to string keys, which you then retrieve like:
echo $prices['Tires']; // 100
echo $prices['Oil']; // 10
echo $prices['Spark Plugs']; // 4
And without any specific keys set, you would directly access array values like $array[0], $array[1], etc...
make sense?
http://www.php.net/manual/en/language.types.array.php