merge_array returns null if one or more of arrays is empty?

前端 未结 2 1552
感动是毒
感动是毒 2021-02-05 03:08

I will give you quick run down of what I am doing.

I am using wordpress with the advanced custom fields plugin. This is a php based question because these get_fiel

2条回答
  •  无人共我
    2021-02-05 04:00

    You can use the following way for merger your arrays:

    $c = (array)$a + (array)$b
    

提交回复
热议问题