<?php$array=array(1,2,3,5,1,7,15);print_r (array_unique($array));
Standard input is empty
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 5 [5] => 7 [6] => 15 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!