PHP中foreach循环的用法?

如题所述

foreach($array as $key=>$value){ echo $key.' is '.$value; } ps: $array 为要遍历的数组 $key 为遍历的数组下标 $key 为遍历的数组的值

希望采纳
温馨提示:答案为网友推荐,仅供参考
相似回答