PHP use current function in foreach
This question already has an answer here:
如果你想输出为12345:
$arr = array(1,2,3,4,5);
foreach($arr as $key => $val) {
echo $val;
}
链接地址: http://www.djcxy.com/p/53032.html
上一篇: 迭代对象是否有序?