<?php $age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43"); foreach($age as $x=>$x_value) { echo "Key=" . $x . ", Value=" . $x_value; echo "<br>"; } ?>
php 关联数组遍历
原文:https://www.cnblogs.com/sea-stream/p/10087111.html