java程序员学php - 7. Map被称作关联数组
如:
$map['BJ'] = 'Beijing';
$map['SH'] = 'Shanghai';
遍历这个关联数组:
foreach($map as $abbr=>$full_name){
echo "$abbr is short for $full_name";
}
java程序员学php - 7. Map被称作关联数组
如:
$map['BJ'] = 'Beijing';
$map['SH'] = 'Shanghai';
遍历这个关联数组:
foreach($map as $abbr=>$full_name){
echo "$abbr is short for $full_name";
}
本文是由「 秘密武器开发者中心」编写整理,所有内容的版权归原作者所有。如果侵犯了您的权益,请联系我删除