adspace
How to remove duplicate values from array using php?
Answer Posted / Subham Kumar
Use the array_unique() function, which returns an array with all the duplicate values removed. For example: $arr = array(1, 2, 3, 3, 4, 4, 5); $newArr = array_unique($arr);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which variable declarations within a class is invalid in php?
Name and explain five of the PHP error constants?
What is the difference between htmlentities() and htmlspecialchars()?
What is the current stable version of php? What advance thing in php7?
What is the current stable version of php?
Write a program using while loop?
What is trait in php?
What is difference between static and final in php?
List some features of php that are deprecated in php7?
sort term descripttion form, report and uery
What does $_files means?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
Tell me what kind of things have you done on the social side?
Explain me is it possible to destroy a cookie?
How to calculate the difference between two dates using php?