当前位置:网站首页>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
边栏推荐
- 【补题】2021牛客暑期多校训练营9-n
- Atlas conflict Remote Code Execution Vulnerability (cve-2022-26134 vulnerability analysis and protection
- C#中如何调整图像大小
- Electronics: Lesson 013 - Experiment 14: Wearable pulsed luminaries
- 网络模型——OSI模型与TCP/IP模型
- Analysis of kinsing dual platform mining family virus
- c#磁盘驱动器及文件夹还有文件类的操作
- Application of can optical transceiver of ring network redundant can/ optical fiber converter in fire alarm system
- SCM Project Training
- MySQL interview - the response of executing SQL is relatively slow, and the troubleshooting ideas.
猜你喜欢

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

417-二叉树的层序遍历1(102. 二叉树的层序遍历、107.二叉树的层次遍历 II、199.二叉树的右视图、637.二叉树的层平均值)

socket问题记录

Electronics: Lesson 013 - Experiment 14: Wearable pulsed luminaries

Cifar-10 dataset application: quick start data enhancement method mixup significantly improves image recognition accuracy

电子学:第012课——实验 11:光和声

使用报文和波形记录分析仪RoyalScope的帧统计功能排查CAN总线偶发性故障

深度学习系列45:图像恢复综述

This article uses pytorch to build Gan model!

Technology blog | how to communicate using SSE
随机推荐
Atlassian confluence漏洞分析合集
Three Siemens fire-fighting hosts fc18 are equipped with can optical transceiver for optical fiber redundant ring network networking test
ffmpeg+SDL2实现音频播放
c#搭建ftp服务器并实现文件上传和下载
消息中间件之ActiveMQ的基本使用
Six causes of PCB disconnection 2021-10-20
c#中设置lable控件的TextAlign属性控制文字居中的方法
WebSocket的理解以及应用场景
Atlas conflict Remote Code Execution Vulnerability (cve-2022-26134 vulnerability analysis and protection
Knowledge sharing 𞓜 conventional laminated structure of six layer PCB
基于RBAC 的SAAS系统权限设计
To understand the difference between Gram-positive and Gram-negative bacteria and the difference in pathogenicity
Buckle 78: subset
牛客:飞行路线(分层图+最短路)
C control refresh
【视频】ffplay 使用mjpeg格式播放usb摄像头
传统的IO存在什么问题?为什么引入零拷贝的?
FM信号、调制信号和载波
深度学习系列48:DeepFaker
Pycharm的奇葩设定:取消注释后立马复制会带上#