Use PHP array_unique() function to remove all the duplicate values form an array. This function takes input of an array and return another array without duplicate values. Here is an sample example:

Expected output: