Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Remove duplicate values from an array:
SUBMITTED BY:
henry1874w
DATE:
June 26, 2017, 4:56 p.m.
FORMAT:
Text only
SIZE:
84 Bytes
Raw
Download
Tweet
HITS:
242
Go to comments
Report
<?php
$a=array("a"=>"red","b"=>"green","c"=>"red");
print_r(array_unique($a));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus