[ create a new paste ] login | about

Link: http://codepad.org/cziNtZOS    [ raw code | output | fork ]

PHP, pasted on Mar 7:
1
2
3
4
5
6
7
8
<?php

$myString = "152258,152258,152258,152258,152261,152261,152261,152261,152261,152270,152270,152270,152287,152287,152287,152287";
$array = explode(",",$myString);
$unique = array_unique ( $array  );
$myUniqueString = implode(",",$unique);
echo $myUniqueString ;
?>


Output:
1
152258,152261,152270,152287


Create a new paste based on this one


Comments: