java软件工程师学php - 7. Map被称作关联数组
程序员文章站
2022-06-16 16:44:46
...
java程序员学php - 7. Map被称作关联数组
如:
$map['BJ'] = 'Beijing';
$map['SH'] = 'Shanghai';
遍历这个关联数组:
foreach($map as $abbr=>$full_name){
echo "$abbr is short for $full_name";
}
如:
$map['BJ'] = 'Beijing';
$map['SH'] = 'Shanghai';
遍历这个关联数组:
foreach($map as $abbr=>$full_name){
echo "$abbr is short for $full_name";
}
相关文章
相关视频
上一篇: Oracle中的序列和触发器