How to merge two data and output them together? Please give me some guidance.
柯伟超
柯伟超 2018-08-31 11:02:09
0
2
1235

For example: how to combine these two arrays with one-time return output

$banner = Banner::all();

$channel = Channel::all();

柯伟超
柯伟超

reply all(2)
jesse
return ['banner'=>$banner, 'channel'=>$channel];

Put two variable values ​​into an array and return it directly

柯伟超

For example: how to combine these two arrays with one-time return output

//thinkphp

$banner = Banner::all();

$channel = Channel::all();


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!