深度阅读 默认 "解决Invalid argument supplied for foreach()" 作者 作者 2023年08月22日 更新时间 2.32 分钟 阅读时间 0 阅读量 只需要在前面判断下是不是数组就可以 if (is_array($variable)) { foreach ($variable as $item) { //do something } } https://gist.githubusercontent.com/napoler/0806c89e105a3c776871/raw/ca3722549a9b8321d2c12442103db93ab231b373/new_file0 相关标签 默认
默认 "解决Invalid argument supplied for foreach()" 作者 作者 2023年08月22日 更新时间 2.32 分钟 阅读时间 0 阅读量 只需要在前面判断下是不是数组就可以 if (is_array($variable)) { foreach ($variable as $item) { //do something } } https://gist.githubusercontent.com/napoler/0806c89e105a3c776871/raw/ca3722549a9b8321d2c12442103db93ab231b373/new_file0 相关标签 默认