小编Bog*_*nko的帖子

foreach在php中出错

我在以下代码中收到错误:

foreach ($result2 as $result2) {


$result2[$i]=  explode(",", $result2[$j]);
}
Run Code Online (Sandbox Code Playgroud)

错误是

Warning: Invalid argument supplied for foreach() in
C:\xampp\htdocs\eplus\vqmod\vqcache\vq2-catalog_controller_product_product.php
on line 417Warning: array_unique() expects parameter 1 to be array, string given in 
Run Code Online (Sandbox Code Playgroud)

我能做什么?

php arrays foreach

-1
推荐指数
1
解决办法
80
查看次数

标签 统计

arrays ×1

foreach ×1

php ×1