array_unique

Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Removes duplicate values from an array
<?php array_unique(array $array, int $flags = SORT_STRING): array
<?php         sort($array);




        $array = array_unique($array);



        return $array;

    }
<?php             $output = array_merge($output, $arg);

        }



        return array_unique($output);

    }
<?php         $rules = Validator::explodeRules($rules);



        $rules[] = 'unique_entry_value:{collection},{id},{site}';

        $rules = array_unique($rules);



        $blueprint->ensureFieldHasConfig('slug', ['validate' => $rules]);