Home  >  Article  >  Backend Development  >  Warning: array_merge(): Argument #3 is not an array

Warning: array_merge(): Argument #3 is not an array

WBOY
WBOYOriginal
2016-09-05 08:44:441818browse

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

Warning: array_merge(): Argument #3 is not an array

Thank you everyone, I will solve it myself, it’s nothing complicated after all

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn