花費 5 ms
PHP一維數組去重方法array_unique()

array_unique() :去除數組中的重復項,只適用於一維數組 它不像 sort()方法, eg: $arraytest = array('tommy','tommy','abcd'); sort($arraytest); print_r ...

Wed May 27 01:10:00 CST 2015 0 11306

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM