PHP报错 count(): Parameter must be an array or an object that implements Countable
转载声明:
本文为摘录自“csdn博客”,版权归原作者所有。
温馨提示:
为了更好的体验,请点击原文链接进行浏览
摘录时间:
2020-05-11 21:51:33
近期重装开发机器环境,运行项目发现报错
count(): Parameter must be an array or an object that implements Countable
查询官方手册发现7.2版本的php有更新,count传入非数组的变量会出现warning:
升级php版本时需注意。