php 使用支付宝SDK报错解决 php7.2 报错The each() function is deprecated. This message will be suppressed on furthe
php7.2以上 废除了 each()方法,项目中用到的地方会出现以下报错
The each() function is deprecated. This message will be suppressed on further calls
buildRequestForm 方法里面
while (list($key, $val) = each($para)) {}
改成:
foreach ($para as $key => $val) {}