Basit
$carParts = array( 'Tires'=>100, 'Window'=>1042, 'DoorHandle'=>917 );
İlişkilendirilebilir Diziler Dizisi
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' => '') );
Döngü
foreach ($carParts as $key => $value) ( echo $key.'=>'.$value.'
'; )
while ($element = each($carParts)) ( echo $element('key'); echo ' - '; echo $element('value'); echo '
'; )