Setting up an associative array is similarly easy
<? $myassocarray = array ("mykey" => 'myvalue', "another" => 'one'); while ($element = each ($myassocarray)) { echo "Key - " . $element['key'] . " and Value - " . $element['value'] . "<br />"; } ?>