I am want to remove duplicated value from array so i am doing this
$input = array("APPL", "berry", "apple", "berry");
$result = array_unique($input);
print_r($result);
So it will output:
APPLE,apple,berry
I want to get result like output apple only once despite of lowercase and uppercase, how can i do this? is there any function in PHP like "array_unique" which i have to use instead, in situation like this? (without making all characters upper or lowercase)
$input = array("APPLE", "berry", "apple", "berry");. Secondly, if you are looking for a result of['APPLE', 'apple', 'berry']you are doing a case-sensitive filter, not case-insensitive. In which case, just usearray_unique()