当前位置:网站首页>PHP array function Encyclopedia
PHP array function Encyclopedia
2022-06-25 08:01:00 【ykxxcs】
php A complete collection of array functions
array_change_key_case -- Returns an array of all lowercase or uppercase string key names
array_chunk -- Split an array into multiple
array_combine -- Create an array , Use the value of an array as its key name , The value of another array as its value array_count_values -- Count the number of times all values in the array appear
array_diff_assoc -- Check the difference set of calculated array with index
array_diff_key -- Use key name comparison to calculate the difference set of array
array_diff_uassoc -- Use the callback function provided by the user to do index check to calculate the difference set of the array array_diff_ukey -- Using callback function to compare and calculate the difference set of array
array_diff -- Calculating the difference set of an array
array_fill -- Fills an array with a given value
array_filter -- Using callback function to filter cells in array
array_flip -- Swap keys and values in an array
array_intersect_assoc -- Checking the intersection of computed arrays with indexes
array_intersect_key -- Use key name comparison to calculate the intersection of arrays
array_intersect_uassoc -- Checking the intersection of computed arrays with indexes , Comparing indexes with callback functions
array_intersect_ukey -- Using callback function to compare key names to calculate the intersection of arrays
array_intersect -- Calculate the intersection of arrays
array_key_exists -- Check whether the given key name or index exists in the array
array_keys -- Returns all key names in the array
array_map -- Apply a callback function to the cells of a given array
array_merge_recursive -- Recursively merge one or more arrays
array_merge -- Merge one or more arrays
array_multisort -- Sort multiple arrays or multidimensional arrays
array_pad -- Fill the array with a value to the specified length
array_pop -- Pop the last cell of the array ( Out of the stack )
array_product -- Calculate the product of all the values in the array
array_push -- Press one or more cells to the end of the array ( Push )
array_rand -- Take one or more cells out of an array at random
array_reduce -- Use callback function to iteratively simplify the array to a single value
array_reverse -- Returns an array of cells in reverse order
array_search -- Search the array for a given value , If successful, return the corresponding key name
array_shift -- Move the cells at the beginning of the array out of the array
array_slice -- Take a segment from the array
array_splice -- Remove part of the array and replace it with other values
array_sum -- All the values in the calculation and the array
array_udiff_assoc -- Check the difference set of calculated array with index , Compare data with callback functions
array_udiff_uassoc -- Check the difference set of calculated array with index , Compare data and index with callback function
array_udiff -- Compare data with callback function to calculate difference set of array
array_uintersect_assoc -- Checking the intersection of computed arrays with indexes , Compare data with callback functions
array_uintersect_uassoc -- Checking the intersection of computed arrays with indexes , Compare data and index with callback function
array_uintersect -- Calculate the intersection of arrays , Compare data with callback functions
array_unique -- Remove duplicate values from the array
array_unshift -- Insert one or more cells at the beginning of an array
array_values -- Returns all the values in the array
array_walk_recursive -- Recursively apply user functions... To each member of the array
array_walk -- Apply user functions... To each member of the array
array -- Create a new array
arsort -- Reverse the array and keep the index relationship
asort -- Sort the array and keep the index relationship
compact -- Create an array , Include variable names and their values
count -- Count the number of cells in an array or the number of attributes in an object
current -- Returns the current cell in the array
each -- Returns the current key in the array / Value pair and move the array pointer one step forward
end -- Point the internal pointer of the array to the last cell
extract -- Import variables from an array into the current symbol table
in_array -- Check if there is a value in the array
key -- Get the key name from the associated array
krsort -- Reverse the array by key name
ksort -- Sort arrays by key names
list -- Assign values in an array to variables
natcasesort -- use “ Natural ordering ” The algorithm sorts the array case insensitive
natsort -- use “ Natural ordering ” The algorithm sorts the array
next -- Move the internal pointer in the array one bit forward
pos -- current() Another name for
prev -- Returns the internal pointer of an array to one bit
range -- Create an array containing the specified range cells , Create a contiguous array
reset -- Point the internal pointer of the array to the first cell
rsort -- Sort the array in reverse
shuffle -- Scramble the array
sizeof -- count() Another name for
sort -- Sort the array
uasort -- Use the user-defined comparison function to sort the values in the array and keep the index association
uksort -- Use the user-defined comparison function to sort the key names in the array
usort -- Use the user-defined comparison function to sort the values in the array
边栏推荐
猜你喜欢

c#磁盘驱动器及文件夹还有文件类的操作

Mining microbial dark matter -- a new idea

用函数的递归来解决几道有趣的题

Opencv minimum filtering (not limited to images)

三台西门子消防主机FC18配套CAN光端机进行光纤冗余环网组网测试

【论文学习】《VQMIVC》

唐老师讲运算放大器(第七讲)——运放的应用

What are the problems with traditional IO? Why is zero copy introduced?

传统的IO存在什么问题?为什么引入零拷贝的?

VSCode很好,但我以后不会再用了
随机推荐
Vscode is good, but I won't use it again
Ph中和过程建模
CAN总线工作状况和信号质量“体检”
TCP与UDP
深度学习系列48:DeepFaker
电子学:第010课——实验 8:继电振荡器
RMQ区间最大值下标查询,区间最值
力扣76题,最小覆盖字串
使用Adobe Acrobat Pro调整PDF页面为统一大小
电子学:第011课——实验 10:晶体管开关
牛客:飞行路线(分层图+最短路)
@Resource和@Autowired注解的不同,为什么推荐@Resource?
Matlab代码格式一键美化神器
Looking for b-end product manager after years? I almost ruined myself
Can bus working condition and signal quality "physical examination"
年后求职找B端产品经理?差点把自己坑惨了......
C WinForm panel custom picture and text
Advantages and differences of three kinds of vias in PCB 2021-10-27
洛谷P6822 [PA2012]Tax(最短路+边变点)
【莫比乌斯反演】