源代码:
"red","b"=>"green","c"=>"red"); print_r(array_unique($a)); ?>
运行结果:
Array ( [a] => red [b] => green )