Home  >  Article  >  Backend Development  >  array_merge合并有关问题

array_merge合并有关问题

WBOY
WBOYOriginal
2016-06-13 12:41:01907browse

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

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

merge 数组合并
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