PHP array unique value

We may want to get a set of unique values from an array. For this we have to use function array_unique(). This will take an array as input and return an array with unique elements of the old array.

Here is our old array with some duplicate elements.


 Now our $new_array will contain values ("Mango","Banana","Orange")

Post your comments , suggestion , error , requirements etc here .

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 All rights reserved worldwide Privacy Policy Disclaimer