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));
More Related Contents:
- How to Flatten a Multidimensional Array?
- Combine two arrays
- Convert array of single-element arrays to one a dimensional array
- PHP: merge two arrays while keeping keys instead of reindexing?
- Convert array of single-element arrays to a one-dimensional array
- Merge two arrays containing objects and remove duplicate values
- How can you make a multidimensional array unique? [duplicate]
- Flatten multidimensional array concatenating keys [duplicate]
- Generate an associative array from an array of rows using one column as keys and another column as values
- Prepend associative array elements to an associative array
- Array_merge versus + [duplicate]
- Merge two numerically-keyed associative arrays and preserve the original keys
- Insert elements from one array (one-at-a-time) after every second element of another array (un-even zippering)
- Combine two 2d arrays and have duplicate rows removed
- Get count of each unique value in one column of a 2d array
- Prevent creating duplicate entries in PHP
- Display multidimensional array in php
- Sum up array values [closed]
- Is there any array function by which I can get the expected result? [duplicate]
- Convert php array to Javascript
- PHP in_array() / array_search() odd behaviour
- How to check whether an array is empty using PHP?
- PHP list all files in directory [duplicate]
- PHP – Merging two arrays into one array (also Remove Duplicates)
- PHP – How to merge arrays inside array
- PHP Random Shuffle Array Maintaining Key => Value
- Make var_dump look pretty [duplicate]
- PHP – Merge two arrays (same-length) into one associative?
- Merge row data from multiple arrays
- PHP, pass array through POST