How to remove all duplicate values in array in php?
Answer / Priyanka Gupta
You can use the array_unique() function to remove duplicate values from an array, as mentioned earlier.nExample:n```phpn$arr = [1, 2, 3, 4, 5, 3, 6, 7, 8, 5];n$result = array_unique($arr);n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me what is pear?
Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want to retrive that variable value . what is the syntax?
Where is the submitted form data stored?
Write the statements that are used to connect php with mysql
Tell me what is the main difference between require() and require_once()?
What are php strings?
Do you know what is the function func_num_args() used for?
Why do we use namespace in php?
List some of the features of php7.
Please explain is it possible to use com component in php?
Explain include(), include_once, require() and require_once?
Difference between $message vs. $$Message in php.