How do you remove duplicate values from an array?
$values = array("banana","apple","pear","banana");
$values = array_unique($values);
 => banana
 => apple
 => pear
Comments on this Question/AnswerHow can i remove the duplicate values from the database fetched result?
By: hussain, 11 Dec 2009 03:31:43
Reply to comments / post your own comment >>>
ASK A QUESTION
More arrays PHP QuestionsHow to point internal pointer to first element of an array?
I want to invert my value in array how can I do this?
how a values entered in an array from keyboard?
How can I loop through the members of an array?
How do I add to the end of an array and know how large the array is?