$arr[] = array('A','B'); $arr[] = array('C','B'); ...
I need to get the merged result of all sub array of $arr .
$arr
And for duplicated entries,should fetch only one.
If you really don't want to loop, try this:
$arr[] = array('A','B'); $arr[] = array('C','B'); $arr[] = array('C','D'); $arr[] = array('F','A'); $merged = array_unique(call_user_func_array('array_merge', $arr));
1.4m articles
1.4m replys
5 comments
57.0k users