建议:在使用count函数计数之前,使用is_*来判断具体的类型,不是此类型使用强制转换 (array)或者抛出异常 try catch,之后在使用 count函数进行计数
例:
- if(is_array($count) && count($catids)==1 && $catids[0]==0) {
- if(is_array($count) && count($catids)==1 && $catids[0]==0) {
添加微信好友
添加微信好友
微信小程序
百度小程序
文章点评