by admin | Oct 20, 2019 | PHP
PHP usort() Function The usort() function in PHP sorts array by values using a user-defined comparison function. Syntax usort ( array &$array , callable $value_compare_func ) 123 usort ( array &$array , callable $value_compare_func ) ...
by admin | Oct 20, 2019 | PHP
PHP uksort() Function The uksort() function in PHP sorts an array by keys using a user-defined comparison function. Syntax uksort ( array &$array , callable $key_compare_func ) 123 uksort ( array &$array , callable $key_compare_func ) Parameter...
by admin | Oct 20, 2019 | PHP
PHP uasort() Function The uasort() function in PHP sorts an array with a user-defined comparison function and maintains the index association. Syntax uasort ( array &$array , callable $value_compare_func ) 123...
by admin | Oct 19, 2019 | PHP
PHP sort() Function The sort() function in PHP sorts an array where the elements will be arranged from lowest to highest. Syntax sort ( array &$array [, int $sort_flags = SORT_REGULAR ] ) 123 sort ( array &$array [, int $sort_flags = SORT_REGULAR ]...
by admin | Oct 19, 2019 | PHP
PHP sizeof() Function The sizeof() function in counts all elements and return the size of the array. This function is an alias of count(). Syntax sizeof( mixed $array_or_countable [, int $mode = COUNT_NORMAL ] ) 123...
by admin | Oct 19, 2019 | PHP
PHP shuffle() Function The shuffle() function in PHP shuffles an array in a random array. Syntax shuffle ( array &$array ) 123 shuffle ( array &$array ) Parameter array(required)- This parameter represents the input array. Return This...
by admin | Oct 19, 2019 | PHP
PHP rsort() Function The rsort () function in PHP is used to sort an array in reverse order i.e., highest to lowest. Syntax rsort ( array &$array [, int $sort_flags = SORT_REGULAR ] ) 123 rsort ( array &$array [, int $sort_flags = SORT_REGULAR ] ) ...
by admin | Oct 19, 2019 | PHP
PHP reset() Function The reset() function in PHP is used to set the internal pointer of an array to its first element and returns the value of the first array element. Syntax reset ( array &$array ) 123 reset ( array &$array ) Parameter...
by admin | Oct 19, 2019 | PHP
PHP range() Function The range () function in PHP is used to create an array containing a range of elements. Syntax range ( mixed $start , mixed $end [, number $step = 1 ] ) 123 range ( mixed $start , mixed $end [, number $step = 1 ] ) Parameter...
by admin | Oct 19, 2019 | PHP
PHP prev() Function The prev() function in PHP rewinds or moves back the internal array pointer one place backward and returns the prev array value. It behaves like next() function, except that this function rewinds the internal array pointer one place backward...