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…
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…
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.…
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…
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…
This function returns an array of elements from low to high, inclusive. If low > high, the sequence will be from high to low. Note: If the low parameter is higher than the high parameter, the range array will be…
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…
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…
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…
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…
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…