阵列我做了我的Prestashop店的更新,现在我有这样的错误,当我尝试打开该网站警告:in_array()预计参数2是在PHP
警告:in_array()预计参数2是数组,字符串中 cdesigner.php给出上线431
line 430: $str_low = Tools::strtolower($tags_c);
line 431: if(!empty($str_low) && !in_array($str_low, $tab_tags_image))
line 432: $tab_tags_image[] = $str_low;
是什么'tab_tags_image'看起来像$代替$ tab_tags_image?你尝试过调试吗?你能否请你更新你的问题,以便在[**最小,完整和可验证的示例**](http://stackoverflow.com/help/mcve)中显示**相关代码**? –
[in \ _array()期望参数2可能重复为数组,字符串中给出的字符串](https://stackoverflow.com/questions/23437671/in-array-expects-parameter-2-to-be-array给我在classipress) –
我想你shoyld首先定义tab_tags_image为数组 –