Простой
$carParts = array( 'Tires'=>100, 'Window'=>1042, 'DoorHandle'=>917 );
Массив ассоциативных массивов
public $notifyPartners = array( array( 'name' => 'Twitter', 'tag' => 'Social Network', 'url' => ''), array( 'name' => 'Campaign Monitor', 'tag' => 'Email Marketing', 'url' => ''), array( 'name' => 'Sendloop', 'tag' => 'Email Marketing', 'url' => ''), array( 'name' => 'Highrise', 'tag' => 'CRM', 'url' => '') );
Зацикливание
foreach ($carParts as $key => $value) ( echo $key.'=>'.$value.'
'; )
while ($element = each($carParts)) ( echo $element('key'); echo ' - '; echo $element('value'); echo '
'; )