Uasort (PHP3 >= 3.0.4, PHP4) uasort---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Sorts by user-defined functions and maintains relational syntax for index values and elements: void Uasort (array array, function cmp_function); Description: ...
sizeof (PHP3, PHP4) sizeof---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Gets the number of elements in the array syntax: int sizeof (array array); Description: Returns the number of elements in the array. Reference: Count ()
Current (PHP3, PHP4)---Returns the existing element syntax in the array: mixed&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp ; Current (array array); Note: Each array has an internal indicator of its current elements, indicators will be inserted into the first element of the array, until the process ...
Array_push (PHP4) array_push---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Add one or more elements to the end of the array syntax: int array_push (array array, mixed var [, mixed ...]); Description: This function arra the parameters ...
Reset (PHP3, PHP4) Reset---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Sets the internal indicator of an array to its first element syntax: Mixed reset (array array); Description: Reset () resets the internal index of the array to its first element. Reset () returns the first of the array ...
Array_walk (PHP3 >= 3.0.0, PHP4) array_walk---Enables custom functions to handle the syntax of each element of an array: int&http://www.aliyun.com/zixun/aggregation /37954.html ">nbsp; Array_walk (Array arr, string func); ...
Count (PHP3, PHP4) Count---Calculate the number of elements in a variable syntax: int&http://www.aliyun.com/zixun/aggregation/37954.html >nbsp; Count (mixed Var); Description: Returns parameter Var, the number of elements, the most typical example is used to calculate the number of elements in the array. If the variable is not set, pass ...
In_array (PHP4) in_array---Search for the existence of values in the array: bool In_array (mixed needle, array haystack); Description: This function searches the array haystack to see if the parameter needle exists in the array, returns true if found in the array, or returns FALSE. Example: <?php &http://www.aliyun ...
List (unknown) list---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Lists array element syntax: void list (...); Description: Similar to Array (), this function is not a normal function, which is used to assign a list of variables in a operation. Example: <table> &n ...
nd (PHP3, PHP4) End---Set the internal index of the array to the last element syntax: "array&http://www.aliyun.com/zixun/aggregation/37954.html" > nbsp; Array); Description: This function sets the internal metric of the array to the final element reference: current () end () &nbs ...
Ksort (PHP3, PHP4) ksort---Arrange the index values of the array syntax: int&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Ksort (array array [, int sort_flags])); Description: This function rearranges the array by a-Z by index value Exam ...
Asort (PHP3, PHP4) Asort the relational syntax for arranging arrays and maintaining index values: void&http://www.aliyun.com/zixun/aggregation/37954.html >nbsp; Asort (array array); Description: This function rearranges the elements of an array by a-Z and maintains the corresponding relationship between the original index value and the element, which is mainly ...
Sort (PHP3, PHP4) sort---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Resets the value of an array from a-Z syntax: void sort (array array [, int sort_flags]); Description: This function arranges the elements of an array by a-Z. Example: <?...
Array_rand (PHP4 >= 4.0.0) array_rand---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Randomly select one or more values of an array syntax: Mixed array_rand (array input [, int num_req]) Description: Array_ran ...
Each (PHP3, PHP4)---returns key/http://www.aliyun.com/zixun/aggregation/9541.html from the array >value to syntax: array each (array Array); Description: Returns the current key/value pair from array arrays and moves the array cursor (cursor) forward. Returned array ...
Krsort (PHP3 >=3.0.13, PHP4 >= 4.0b4) krsort---&http://www.aliyun.com/zixun/aggregation/37954.html "> nbsp; Arranges the array syntax according to the inverted order of index values: int krsort (array array); Description: Z The array in reverse order of index values ...
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.