Overview of PHP array processing functions_PHP tutorial

WBOY
Release: 2016-07-15 13:29:34
Original
1088 people have browsed it

Today we are for beginners PHP array processing function array: Create a new array.

array_walk: Allows user-defined functions to process each element in the array.

arsort: Sort the values ​​of the array from large to small.

asort: Sort the values ​​of the array from small to large.

count: Count the number of elements in a variable or array.

current: Returns the current element in the array.

each: Returns the index and value of the next element in the array.

end: Point the internal pointer of the array to the last element.

key: Get the index data in the array.

PHP array processing function ksort: Sorts the elements of the array according to index.

list: List the values ​​of elements in the array.

next: Move the internal pointer of the array backward.

pos: Returns the current element of the array.

prev: Move the internal pointer of the array forward.

range: Create an array of integer ranges.

reset: Point the array pointer to the first element of the array.

rsort: Sort the values ​​of the array from large to small.

shuffle: Shuffle the order of the array.

sizeof: Get the size of the array.

sort: Sort the array.

uasort: Sort the array according to user-defined function.

uksort: Sort the index of the array according to the user-defined function.

PHP array processing function usort: sorts the values ​​of the array according to a user-defined function.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446364.htmlTechArticleToday we will create a new array for beginners to learn the PHP array processing function array:. array_walk: Allows user-defined functions to process each element in the array. arsort: Sort the array values ​​from large to large...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!