常用的php数组函数

以下是自己比较常用的数组函数

数组元素增加减少
array_push
array_pop
array_shift
array_unshift

array_splice  (对数组的增删改)

array_slice   (取出数组中的一些个元素)

数组key和value的处理
array_keys
array_key_exists

array_values
in_array

array_search
array_flip

array_count_values

循环处理数组

array_filter
array_map
array_walk

数组的交集并集

array_intersect
array_diff
array_merge

数组的排序、随机

shuffle
array_rand

array_reverse
sort
usort
array_multisort


其他:

array_unique
implode
explode
count
end

current

reset

原文地址:https://www.cnblogs.com/firstForEver/p/5019225.html