1.PHP中foreach循环
有两种语法,第二种比较次要但却是第一种的有用的扩展。
foreach ($array as $value){}
foreach ($array as $key=>$value)
{};