[ create a new paste ] login | about

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

PHP, pasted on Jul 25:
1
2
3
4
5
<?php
$input = array("1" => "abc.com", "2" => "acc.com", "3" => "abc.com");
$result = array_unique($input);
print_r($result);
?>


Output:
1
2
3
4
5
Array
(
    [1] => abc.com
    [2] => acc.com
)


Create a new paste based on this one


Comments: