src/Robo/Common/TextMunge.php
public static function arrayMergeNoDuplicates(array &$array1, array &$array2) {
    $merged = array_merge($array1, $array2);
    $merged_without_dups = array_unique($merged);
    $merged_rekeyed = array_values($merged_without_dups);

    return $merged_rekeyed;
  }
public static function arrayMergeNoDuplicates(array &$array1, array &$array2) {
    $merged = array_merge($array1, $array2);
    $merged_without_dups = array_unique($merged);
    $merged_rekeyed = array_values($merged_without_dups);

    return $merged_rekeyed;
  }
public static function arrayMergeNoDuplicates ( array & $ array1 , array & $ array2 ) { $ merged = array_merge ( $ array1 , $ array2 ) ; $ merged_without_dups = array_unique ( $ merged ) ; $ merged_rekeyed = array_values ( $ merged_without_dups ) ; return $ merged_rekeyed ; }
Merges two arrays and removes duplicate values.

@param array $array1
The first array.
@param array $array2
The second array.

@return array
Merges two arrays and removes duplicate values .