In a PHP course, an example of an Associative Array is:
$myAssocArray = array('year' => 2012,
'colour' => 'blue',
'doors' => 5);
Is that a good example of an Associative Array? Why use an Array for this car, and why not use an Object? I thought arrays weren't used to list an object's properties, but rather for collections of similar values.... such as:
$numberStudents = array('firstgrade' => 78,
'secondgrade' => 84,
'thirdgrade' => 76);
Thanks!