<?php $boy = [ 'xiaoming' => 18,'xiaoliang' => 19, ]; foreach($boy $k $v){echo $k.'年龄是'.. '<br />'; } ?>