浏览文章
文章信息
Deprecated Functionality: The each() function is deprecated. This message will be suppressed on further calls
11378
原因:
高版本php不支持以下代码写法
while (list ($key, $val) = foreach ($arr)) { // $val = str_replace("'","'",$val); $sHtml.= "<input type='hidden' name='".$key."' value='".$val."'/>"; }解决:
foreach($arr as $key,=>$val){ // $val = str_replace("'","'",$val); $sHtml.= "<input type='hidden' name='".$key."' value='".$val."'/>"; }