array_merge合并有关问题

WBOY
Release: 2016-06-13 12:41:01
Original
908 people have browsed it

array_merge合并问题
假设$a    $b   $c 三个数组,a和b有值,如果c没有任何数据,array_merge( $a , $b , $c )后返回的是一个null值。

现在想c没数据的时候,array_merge( $a , $b , $c )也能返回a和b合并后的数据,请问有什么办法解决?

merge 数组合并
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
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!