当前位置:网站首页>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
边栏推荐
- Pycharm的奇葩设定:取消注释后立马复制会带上#
- 417-二叉树的层序遍历1(102. 二叉树的层序遍历、107.二叉树的层次遍历 II、199.二叉树的右视图、637.二叉树的层平均值)
- Mining microbial dark matter -- a new idea
- 年后求职找B端产品经理?差点把自己坑惨了......
- 將數據導入到MATLAB
- 洛谷P2486 [SDOI2011]染色(树链+线段树 + 树上区间合并 )
- What are the problems with traditional IO? Why is zero copy introduced?
- 云计算考试版本1.0
- 洛谷P3313 [SDOI2014]旅行(树链+边权转点权)
- 57. insert interval
猜你喜欢

Debugging mipi-dsi screen based on stm32mp157

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

力扣 272. 最接近的二叉搜索树值 II 递归

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

How to resize an image in C #

【论文学习】《VQMIVC》

c#搭建ftp服务器并实现文件上传和下载

420-二叉树的层序遍历2(429. N 叉树的层序遍历、515.在每个树行中找最大值、116.填充每个节点的下一个右侧节点指针、104.二叉树的最大深度、111.二叉树的最小深度)

静态网页服务器

Neural network and deep learning-3-simple example of machine learning pytorch
随机推荐
数论模板啊
牛客:飞行路线(分层图+最短路)
力扣76题,最小覆盖字串
洛谷P6822 [PA2012]Tax(最短路+边变点)
Share the process requirements for single-layer flexible circuit board
力扣78:子集
Requirements for Power PCB circuit board design 2021-11-09
c#搭建ftp服务器并实现文件上传和下载
洛谷P2486 [SDOI2011]染色(树链+线段树 + 树上区间合并 )
【视频】ffplay 使用mjpeg格式播放usb摄像头
c#中设置lable控件的TextAlign属性控制文字居中的方法
2160. minimum sum of the last four digits after splitting
洛谷P2839 [国家集训队]middle(二分 + 主席树 + 区间合并)
How to create a new branch with SVN
TCP的那点玩意儿
Electronics: Lesson 010 - Experiment 8: relay oscillator
电子学:第008课——实验 6:非常简单的开关
Machine learning notes linear regression of time series
【补题】2021牛客暑期多校训练营9-n
To understand the difference between Gram-positive and Gram-negative bacteria and the difference in pathogenicity