PHP Array Processing functions overview
We are today for beginners of the PHP language to list some PHP array processing functions, I hope that the novice can collect these functions, so that people in the code to facilitate the use of query, increase our coding ability.
?
- How to correct common errors in PHP
- PHP function header () query a single part of the specific method solution
- WordPress gets 2009 Open source PHP Project runner-up
- PHP array-to-string related to PHP string-to-array
- Discussion on some problems in PHP reference & notation
PHP array processing function array: Create a new array.
Array_walk: Lets the user customize the function to handle each element in the array.
Arsort: Sorts the values of the array from large to small.
Asort: Sorts the values of the array from small to large.
Count: Calculates the number of elements in a variable or array.
Current: Returns the element currently in the array.
Each: Returns the index and value of the next element in the array.
End: Refers to the inner pointer of the array to the last element.
Key: Gets the index data in the array.
PHP Array handler function Ksort: Sorts the elements of an array by index.
List: Lists the values of the elements in the array.
Next: Move the inner pointer of the array backwards.
POS: Returns the current element of the array.
Prev: Moves the inner pointer of the array forward.
Range: Creates an array of integer ranges.
Reset: Refers to the array's pointer to the first element of the array.
Rsort: Sorts the values of the array from large to small.
Shuffle: Confuse the order of the arrays.
sizeof: Learns the size of the array.
Sort: Sorts the array.
Uasort: Sorts the array according to the user-defined function.
Uksort: Sorts the index of the array according to the user-defined function.
PHP Array handler function Usort: Sorts the values of the array according to the user-defined function.