Function |
Description |
PHP |

Array () |
Create an array. |
3 |

Array_change_key_case () |
Returns an array with uppercase or lowercase keys. |
4 |

Array_chunk () |
Splits an array into new array blocks. |
4 |

Array_combine () |
Create a new array by combining two arrays. |
5 |

Array_count_values () |
Used to count the number of times all values appear in the array. |
4 |

Array_diff () |
Returns the number of difference sets of two arrays. |
4 |

Array_diff_assoc () |
Compare the key name and key value, and return the number groups of the two arrays. |
4 |

Array_diff_key () |
Compare the key name, and return the number groups of the two arrays. |
5 |

Array_diff_uassoc () |
You can use the callback function provided by the user to perform an index check to calculate the array's difference set. |
5 |

Array_diff_ukey () |
Use the callback function to compare the difference set of the calculated array with the key name. |
5 |

Array_fill () |
Fill the array with the given value. |
4 |

Array_filter () |
Use the callback function to filter elements in the array. |
4 |

Array_flip () |
Exchange Keys and values in the array. |
4 |

Array_intersect () |
Calculates the intersection of arrays. |
4 |

Array_intersect_assoc () |
Compare the key name and key value, and return the intersection array of the two arrays. |
4 |

Array_intersect_key () |
Use the key name to compare and calculate the intersection of arrays. |
5 |

Array_intersect_uassoc () |
Check and calculate the intersection of arrays with indexes, and use the callback function to compare indexes. |
5 |

Array_intersect_ukey () |
Use the callback function to compare the key names to calculate the intersection of arrays. |
5 |

Array_key_exists () |
Check whether the given key name or index exists in the array. |
4 |

Array_keys () |
Returns all the key names in the array. |
4 |

Array_map () |
The callback function acts on the units of the given array. |
4 |

Array_merge () |
Combine one or more numbers into an array. |
4 |

Array_merge_recursive () |
Recursively merges one or more arrays. |
4 |

Array_multisort () |
Sorts multiple arrays or multi-dimensional arrays. |
4 |

Array_pad () |
Fill the array with values to the specified length. |
4 |

Array_pop () |
Bring up the last unit of the array (Out stack ). |
4 |

Array_product () |
Calculates the product of all values in the array. |
5 |

Array_push () |
Push one or more units (elements) to the end of the array (into the stack ). |
4 |

Array_rand () |
Randomly selects one or more elements from the array and returns the result. |
4 |

Array_reduce () |
Use the callback function to iteratively simplify the array to a single value. |
4 |

Array_reverse () |
Flip the elements in the original array sequentially, create a new array, and return it. |
4 |

Array_search () |
Search for the given value in the array. If the value is successful, the corresponding key name is returned. |
4 |

Array_shift () |
Delete the first element in the array and return the value of the deleted element. |
4 |

Array_slice () |
Extract A value from the Array Based on the Conditions and return it. |
4 |

Array_splice () |
Remove part of the array and replace it with other values. |
4 |

Array_sum () |
Calculates the sum of all values in the array. |
4 |

Array_udiff () |
Use the callback function to compare data to calculate the difference set of the array. |
5 |

Array_udiff_assoc () |
Calculate the difference set of the array with index check, and use the callback function to compare the data. |
5 |

Array_udiff_uassoc () |
Use the callback function to compare data and indexes. |
5 |

Array_uintersect () |
Calculate the intersection of arrays and use the callback function to compare the data. |
5 |

Array_uintersect_assoc () |
Check and calculate the intersection of arrays with indexes, and use the callback function to compare data. |
5 |

Array_uintersect_uassoc () |
Use the callback function to compare data and indexes. |
5 |

Array_unique () |
Delete repeated values in the array. |
4 |

Array_unshift () |
Insert one or more elements at the beginning of the array. |
4 |

Array_values () |
Returns all values in the array. |
4 |

Array_walk () |
Apply user functions to each member in the array. |
3 |

Array_pai_recursive () |
Recursively apply user functions to each member in the array. |
5 |

Arsort () |
Sort the array in reverse order and maintain the index relationship. |
3 |

Asort () |
Sorts the array and maintains the index relationship. |
3 |

Compact () |
Create an array, including the variable names and their values. |
4 |

Count () |
Calculates the number of elements in an array or the number of attributes in an object. |
3 |

Current () |
Returns the current element in the array. |
3 |

Each () |
Returns the current key/value pair in the array and moves the array pointer one step forward. |
3 |

End () |
Point the internal pointer of the array to the last element. |
3 |

Extract () |
Import the variable from the array to the current symbol table. |
3 |

In_array () |
Check whether the specified value exists in the array. |
4 |

Key () |
Obtain the key name from the joined array. |
3 |

Krsort () |
Sort the array in reverse order by key name. |
3 |

Ksort () |
Sort the array by key name. |
3 |

List () |
Assign values in the array to some variables. |
3 |

Natcasesort () |
Use the "natural sorting" algorithm to sort arrays by case-insensitive letters. |
4 |

Natsort () |
Sort arrays using the "natural sorting" algorithm. |
4 |

Next () |
Move the internal pointer in the array one by one. |
3 |

Pos () |
The alias of current. |
3 |

Prev () |
Returns the internal pointer of the array to one position. |
3 |

Range () |
Creates an array containing elements in a specified range. |
3 |

Reset () |
Points the internal pointer of the array to the first element. |
3 |

Rsort () |
Sorts arrays in reverse order. |
3 |

Shuffle () |
Sorts the elements in the array in random order. |
3 |

Sizeof () |
The alias of count. |
3 |

Sort () |
Sorts arrays. |
3 |

Uasort () |
Use the custom comparison function to sort the values in the array and maintain the index Association. |
3 |

Uksort () |
Sort the key names in the array using the custom comparison function. |
3 |

Usort () |
Sort the values in the array using the User-Defined comparison function. |
3 |