<?php
$array=array(1,2,3,5,1,7,15);
print_r (array_unique($array));