php 关联数组遍历

<?php
$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");

foreach($age as $x=>$x_value)
{
echo "Key=" . $x . ", Value=" . $x_value;
echo "<br>";
}
?>

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/10087111.html