$arr[] = array(\'A\',\'B\'); $arr[] = array(\'C\',\'B\'); ...
I need to get the merged result of all sub array of $arr .
$arr
And f
A simple way to handle this in PHP Version >= 5.6 is to use the splat operator also called Argument Unpacking.
>= 5.6
$arr = array_unique(array_merge(...$arr));