Home > Article > Backend Development > Warning: array_merge(): Argument #3 is not an array
The background code is written like this
$data['goods'] = array_merge($goods, $cat_goods, $all_goods);
I used to pass two arrays, but now I will get an error when I pass three arrays. What’s the explanation? ?
I checked the manual, but there is no solution given in the manual. I hope you can give me some advice. Thanks
Thank you everyone, I will solve it myself, it’s nothing complicated after all