The each() function is deprecated. This message will be suppressed on furthe
末了发明这是因为我们的新服务器的php版本装置的时php7.2,因为php7.2版本烧毁了each要领致使涌现毛病,处理要领为将each要领改成foreach要领,以下将:
while (list($key, $val) = each($para)) {}
改成:
foreach ($para as $key => $val) {}
修正完成付出又发明涌现以下毛病:
count(): Parameter must be an array or an object that implements Countable
这是因为在php7.2中count要领参数只支撑数组致使的毛病,修正以下将:
$arg = substr($arg,0,count($arg)-2);
改成:
$arg = substr($arg,0,strlen($arg)-1);
修正完成以后付出宝付出胜利!!!
相干引荐:《PHP教程》
以上就是处理php运用付出宝SDK报错题目的细致内容,更多请关注ki4网别的相干文章!