85137/how-to-remove-duplicate-values-from-an-array-in-php
Hello @kartik,
Use array_unique():
Example:
$array = array(1, 2, 2, 3); $array = array_unique($array); // Array is now (1, 2, 3)
Hope it helps!!
Thank You!!
Hello @kartik, You could have a single key ...READ MORE
Hii, You can pass an associative array to http_build_query() and ...READ MORE
What can I do to get the ...READ MORE
I want to convert a string into ...READ MORE
Hey @kartik, First you have to go to ...READ MORE
Named route is used to give specific ...READ MORE
Hello, This is simple you just need to ...READ MORE
Hey @kartik, Named routing is another amazing feature of ...READ MORE
Hello @kartik, Declare the $items array outside the loop and ...READ MORE
Hello @kartik, Try: if (isset($_POST['remove'])) { ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.