代码报出::array_merge(): Argument #2 is not an array
//原代码
array_merge($shownFilms['movieList'],$hotMovies['movieList']);
//修改后
array_merge($shownFilms['movieList'],(array)$hotMovies['movieList']);
array_merge将第二个参数强制转换成数组。
代码报出::array_merge(): Argument #2 is not an array
//原代码
array_merge($shownFilms['movieList'],$hotMovies['movieList']);
//修改后
array_merge($shownFilms['movieList'],(array)$hotMovies['movieList']);
array_merge将第二个参数强制转换成数组。