[ create a new paste ] login | about

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

PHP, pasted on Sep 9:
1
2
3
4
5
<?php
$input = array("a" => "green", "red", "b" => "green", "blue", "red");
$result = array_unique($input);
print_r($result);
?>


Output:
1
2
3
4
5
6
Array
(
    [a] => green
    [0] => red
    [1] => blue
)


Create a new paste based on this one


Comments: