2007-11-20 連想配列のキーと値をループで取得 php 連想配列 while(list($key, $val) = each($ary)){} foreach($ary as $key => $val){}foreachの方が見やすいかな。