The SplDoublyLinkedList::offsetGet() function is an inbuilt function in PHP which returns the value at given index. Syntax: mixed SplDoublyLinkedList::offsetGet( $index ) Parameters: This function accepts… Read More
Tag Archives: PHP-function
The SplDoublyLinkedList::key() function is an inbuilt function in PHP which is used to return the index of the current node. Syntax: mixed SplDoublyLinkedList::key( void )… Read More
The SplDoublyLinkedList::shift() function is an inbuilt function in PHP which is used to shift the node from the beginning of the doubly linked list. Syntax:… Read More
The SplDoublyLinkedList::unshift() function is an inbuilt function in PHP which is used to add the element at the beginning of a doubly linked list. Syntax:… Read More
The SplDoublyLinkedList::offsetExists() function is an inbuilt function in PHP which is used to check whether the given index exists or not. Syntax: bool SplDoublyLinkedList::offsetExists( $index… Read More
Pre-requisite: Read XML Basics The SimpleXMLElement::addAttribute() function is an inbuilt function in PHP which add an attribute in a SimpleXML object. Syntax: void SimpleXMLElement::addAttribute($name, $value,… Read More
Pre-requisite: Read XML Basics The SimpleXMLElement::addChild() function is an inbuilt function in PHP which is used to add a child in a SimpleXML object. Syntax:… Read More
Pre-requisite: Read XML Basics The SimpleXMLElement::count() function is an inbuilt function in PHP which counts number of child element in a SimpleXML object. Syntax: int… Read More
The Ds\Map::capacity() function is an inbuilt function in PHP, which is used to return the current capacity of the map. Syntax: int public Ds\Map::capacity( void… Read More
The Ds\Deque::__construct() function is an inbuilt function in PHP which is used to create a new instance. Syntax: Ds\Deque::__construct( $values ) Parameters: This function accepts… Read More
The Ds\Map::intersect() function is an inbuilt function in PHP, which is used to create a new map which contains the intersection with another map. Syntax:… Read More
The Ds\Map::filter() function is an inbuilt function in PHP which is used to create a new map using the filter function. Syntax: public Ds\Map::filter( $callback… Read More
The Ds\Map::diff() function is an inbuilt function in PHP which is used to create a map using the key which contains the elements of the… Read More
The Ds\Map::__construct() function is an inbuilt function in PHP which is used to creates a new instance. Syntax: public Ds\Map::__construct( $values ) Parameter: This function… Read More
The Ds\Map::allocate() function is an inbuilt function in PHP which is used to allocate enough memory for required capacity. Syntax: void public Ds\Map::allocate( $capacity )… Read More