how to make an unique array from duplicate value containing array

<?php

$allphone = array(
 '11111',
 '22222',
 '33333',
 '44444',
 '55555',
 '55555',
 '66666',
 '+66666',
 '77777',
 '88888',
 '99999',
 '00000');

echo "Duplicate value Array: ";
echo "<br>";
print_r($allphone);
echo "<br>";

echo "Unique Value Array: ";
echo "<br>";
$uniqueArray = array_unique($allphone);
print_r($uniqueArray);

echo "<br>";

?>
OUTPUT:

Duplicate value Array: 
Array ( [0] => 11111 [1] => 22222 [2] => 33333 [3] => 44444 [4] => 55555 [5] => 55555 [6] => 66666 [7] => +66666 [8] => 77777 [9] => 88888 [10] => 99999 [11] => 00000 ) 

Unique Value Array: 
Array ( [0] => 11111 [1] => 22222 [2] => 33333 [3] => 44444 [4] => 55555 [6] => 66666 [7] => +66666 [8] => 77777 [9] => 88888 [10] => 99999 [11] => 00000 ) 

Here all duplicate values are removed.
Please follow and like us: