Skip to content

Tag Archives: PHP-array

The asort() function of the ArrayObject class in PHP is used to sort all of the entries of the ArrayObject according to the values. The… Read More
The append() function of the ArrayObject class in PHP is used to append a given value onto an ArrayObject. The value being appended can be… Read More
The getIteratorClass() function of the ArrayObject class in PHP is used to get the classname of the iterator used to iterate over this ArrayObject. Syntax:… Read More
The ksort() function of the ArrayObject class in PHP is used to sort the elements of the ArrayObject according to the keys. This function does… Read More
The natcasesort() function of the ArrayObject class in PHP is used to sort the elements of the ArrayObject following a natural order case sensitive sorting… Read More
The getArrayCopy() function of the ArrayObject class in PHP is used to create a copy of this ArrayObject. This function returns the copy of the… Read More
The natsort() function of the ArrayObject class in PHP is used to sort the elements of the ArrayObject following a natural order sorting algorithm. The… Read More
The exchangeArray() function of the ArrayObject class in PHP is used to exchange an array from an ArrayObject. That is, it replaces existing array from… Read More
The getIterator() function of the ArrayObject class in PHP is used to create an iterator from an ArrayObject instance. This iterator can be used to… Read More
In this article, we will see how to compare the elements of arrays in PHP, & will know how to apply to get the result… Read More
The ‘=>’ symbol is used to assign key value pairs in an array. The value of left side is called key and the value of… Read More
The filter_list() function is an inbuilt function in PHP which is used to returns the list of all supported filters. Syntax: array filter_list( void )… Read More
Given an array of objects and the task is to sort the array by object by given fields. Approach: The usort() function is an inbuilt… Read More
The stream_get_transports() function is an inbuilt function in PHP which is used to get the list of registered socket transports. This function returns the indexed… Read More
The stream_get_filters() function is an inbuilt function in PHP which is used to get the list of registered stream filters. Syntax: array stream_get_filters( void )… Read More

Start Your Coding Journey Now!