Sederhana
$carParts = array( 'Tires'=>100, 'Window'=>1042, 'DoorHandle'=>917 );
Array dari Associative Arrays
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' => '') );
Pendauran
foreach ($carParts as $key => $value) ( echo $key.'=>'.$value.'
'; )
while ($element = each($carParts)) ( echo $element('key'); echo ' - '; echo $element('value'); echo '
'; )