00问答网
所有问题
PHP中foreach循环的用法?
如题所述
举报该问题
推荐答案 推荐于2016-08-02
foreach($array as $key=>$value){ echo $key.' is '.$value; } ps: $array 为要遍历的数组 $key 为遍历的数组下标 $key 为遍历的数组的值
希望采纳
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://00.wendadaohang.com/zd/T0njIT0nB0eerBT00n.html
相似回答
大家正在搜
相关问题
php foreach 用法
PHP中的foreach
PHP前台怎么使用foreach循环输出值
php中foreach怎么控制循环次数?
PHP中使用foreach循环读取数组数据的方法
php循环语句 for与foreach用法区别介绍
PHP如何使用2个foreach循环拼接字符串
PHP中如何使用foreach结构遍历数组?