标签:
$a = array(‘a‘, ‘b‘, ‘a‘, ‘c‘, ‘a‘, ‘b‘, ‘e‘);print_r(array_flip(array_flip($a)));
结果
Array( [4] => a [5] => b [3] => c [6] => e)
后面重复的被删除
数组去重
原文地址:http://www.cnblogs.com/jdhu/p/4502842.html