function array_iunique( $array ) {
return array_intersect_key(
$array,
array_unique( array_map( "strtolower", $array ) )
);
}
More Related Contents:
- How do you remove an array element in a foreach loop?
- Can't echo items from array
- PHP Foreach returns separated(individual) arrays
- Strange behavior Of foreach
- Two arrays in foreach loop
- Modify array values in foreach loop
- PHP foreach change original array values [duplicate]
- PHP How to determine the first and last iteration in a foreach loop?
- What is the best way to loop through this array in PHP?
- Performance of FOR vs FOREACH in PHP
- PHP Foreach Pass by Reference: Last Element Duplicating? (Bug?) [duplicate]
- How to find the foreach index?
- Strange behavior of foreach when using reference: foreach ($a as &$v) { … }
- Foreach loop inside array
- Looping a multidimensional array in php
- Checking if array is multidimensional or not?
- How do you loop through $_FILES array?
- How to delete object from array inside foreach loop?
- What is better in a foreach loop… using the & symbol or reassigning based on key?
- How do i count same values in an array and store it to a variable?
- Unsetting array values in a foreach loop [duplicate]
- Removing last comma from a foreach loop
- While destructuring an array, can the same element value be accessed more than once?
- php multidimensional array get values
- How to check if variable is array?… or something array-like
- endforeach in loops?
- How to set an option from multiple options or array with different values to views as selected in select box using PHP
- PHP array printing using a loop
- How to display two table columns per row in php loop
- Twig for loop for arrays with keys