$data = array(0=>'jquery',1=>'php',2=>'ajax',3=>'jquery',4=>'linux',5=>'php'); $data = array_values(array_unique($data)); print_r($data);php
返回結果:jquery
Array ( [0] => jquery [1] => php [2] => ajax [4] => linux )