array_unique: 去重; 
array_values: 键名重新排序
array_values(array_unique($ary_data));
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐