union array php code example
Example 1: php array merge
array_merge ([ array $... ] ) : array
Example 2: union of two arrays in php
$union = array_unique(array_merge($a, $b));
array_merge ([ array $... ] ) : array
$union = array_unique(array_merge($a, $b));