PHP sizeof() Function

The sizeof() function is used to count the elements of an array or the properties of an object. This function is an alias of count(). The sizeof() function is an alias of the count() function. Returns the number of elements…

Read MorePHP sizeof() Function

PHP shuffle() Function

The shuffle() function is used to randomize the order of the elements in the array. The function assigns new keys to the elements in array. Note: The function uses a pseudo-random number generator that is not suitable for cryptographic purposes.…

Read MorePHP shuffle() Function

PHP rsort() Function

This rsort() function is used to sort an array in reverse order (highest to lowest). Note: If two members compare as equal, their relative order in the sorted array is undefined. TRUE on success. FALSE on failure Parameter Description array…

Read MorePHP rsort() Function

PHP reset() Function

The reset() function rewinds array’s internal pointer to the first element and returns the value of the first array element, or FALSE if the array is empty. Returns the value of the first element in the array on success, or…

Read MorePHP reset() Function

PHP prev() Function

The prev() function moves the internal pointer to, and outputs, the previous element in the array. Returns the value of the previous element in the array on success, or FALSE if there are no more elements The previous element of…

Read MorePHP prev() Function

PHP pos() Function

The pos() function returns the value of the current element in an array. Every array has an internal pointer to its “current” element, which is initialized to the first element inserted into the array. Tip: This function does not move…

Read MorePHP pos() Function

PHP next() Function

The next() function is used to advance the internal array pointer. next() behaves like current(), with one difference. It advances the internal array pointer one place forward before returning the element value. Returns the value of the next element in…

Read MorePHP next() Function

PHP natsort() Function

The natsort() function sorts an array by using a “natural order” algorithm. The values keep their original keys. This function implements a sort algorithm that orders alphanumeric strings in the way a human being would while maintaining key/value associations. Parameter…

Read MorePHP natsort() Function

PHP natcasesort() Function

The natcasesort() function sorts an array by using a “natural order” algorithm. The values keep their original keys. This function is case-insensitive. This function returns TRUE on success, or FALSE on failure. Parameter Description array Required. Specifies the array to…

Read MorePHP natcasesort() Function