Array Function Library

Discover array function library, include the articles, news, trends, analysis and practical advice about array function library on alibabacloud.com

Array function library: Shuffle

Shuffle (PHP3 >= 3.0.8, PHP4 >= 4.0b4) Shuffle---&http://www.aliyun.com/zixun/aggregation/37954.html "> nbsp; To confuse the order of an array syntax: void Shuffle (array array); Description: This function sorts the element order of the array arbitrarily. Exampl ...

Array function library: Arsort

Arsort (PHP3, PHP4) Arsort the relational syntax for---reverse the order of the array and maintain index values: void&http://www.aliyun.com/zixun/aggregation/37954.html "> nbsp; Arsort (array array); Description: This function reverses the order of the array elements (z) and maintains the relationship of the array element to its index value ...

Array function library: Rsort

Rsort (PHP3, PHP4) rsort---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Rearrange the values of the array by Z syntax: void rsort (array array); Description: This function rearranges the value of an array by Z. Example: <?php & ...

Array function library: Array_slice

Array_slice (PHP4) array_slice---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Extracts part of an array syntax: array array_slice (array array, int offset, int [length]); Description: This function returns the meta ...

Array function library: Key

Key (PHP3, PHP4) key---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Gets the index value syntax from the array: Mixed key (array array); Description: This function returns the index that the current array metric refers to. Reference: Current () Next ()

Array function library: Array_keys

Array_keys (PHP4) array_keys---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Returns all index-value syntax for an array: array array_keys (array input [, mixed search_value]); Description: This function from the parameter input ...

Array function library: Range

Range (PHP3 >= 3.0.8, PHP4 >= 4.0b4) Range---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Sets the array syntax for an integer range: array range (int low, int high); Description: Returns an array of integers from low to high. Reference s ...

Array function library: prev

Prev (PHP3, PHP4) prev---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; The internal indicator syntax for moving the array backward: Mixed prev (array array); Description: Returns the array element that the internal metric of the previous array refers to, and returns false if there are no previous elements. Warning: If the array contains empty ...

Array function library: Array_pop

Array_pop (PHP4) array_pop---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Gets the last element syntax of the array: mixed Array_pop (array array); Description: This function returns the last element of an array, shortening an array to an element. Example ...

Array function library: Array_shift

Array_shift (PHP4) array_shift---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Gets the first element syntax of the array: mixed Array_shift (array array); Description: This function moves the first element of the array and returns it to the array, shortening an element, ...

Array function library: Usort

Usort (PHP3 >= 3.0.3, PHP4) usort---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Sorts the values of an array by user-defined functions: void Usort (array array, function cmp_function); Description: This function will be determined according to the user ...

Array function library: POS

POS (PHP3, PHP4) pos---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Returns the current element syntax in the array: Mixed pos (array array); Description: This function is an alias for current (). Reference: End () Next () prev (...)

Array function library: array_values

Array_http://www.aliyun.com/zixun/aggregation/9541.html ">values (PHP4) array_values---Returns all value syntax for an array: array Array_ Values (array input); Description: This function returns all of the values from an array of arrays. Example: <?php   ...

Array function library: Array_flip

Array_flip (PHP4 >= 4.0b4) array_flip---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Flip array All value syntax: Array array_flip (array trans); Description: This function returns an array of Flip (flip) order. Example: &l ...

Array function library: Uksort

Uksort (PHP3 >= 3.0.4, PHP4) uksort---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Sorts the indexed values of an array by user-defined functions: void Uksort (array array, function cmp_function); Description: This function depends on ...

Array function library: Array_diff

Array_diff (PHP4 >= 4.0.1) array_diff---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Compute the difference syntax for arrays: array Array_diff (array array1, array array2 [, array ...]) Description: Arra ...

Array function library: Next

Next (PHP3, PHP4) Next---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Moves forward the internal metric syntax for an array: Mixed next (array array); Description: Returns the next element that the internal indicator of an array refers to, and returns False if there is no next element. This function is in the current () phase ...

Array Function Library: Extract

Extract (PHP3 >= 3.0.7, PHP4) array_extract---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; From the array input variable to the symbol table syntax: Void extract (array var_array, int [extract_type], Strin ...

Array function library: array_count_values

Array_count_http://www.aliyun.com/zixun/aggregation/9541.html ">values (PHP4 >= 4.0b4) array_count_values--- Computes all value syntax: array array_count_values (array input); Description: This function returns a computed array knot ...

Array function library: Array_unshift

Array_unshift (PHP4) array_unshift---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Add one or more elements to the beginning of the array syntax: int array_unshift (array array, mixed Var, [...]); Description: This function adds elements to the array ...

Total Pages: 3 1 2 3 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.