Skip to content

Tag Archives: PHP-ds_vector

The Ds\Vector::pop() function is an inbuilt function in PHP which is used to remove the last element of a vector and return it. Syntax: mixed… Read More
The Ds\Vector::filter() function is used to filter out the only elements which satisfy the condition defined in the callback function. After doing a filter on… Read More
The Ds\Vector::capacity() function is an inbuilt function in PHP which is used to return the current capacity of the vector. Syntax: int public Ds\Vector::capacity( void… Read More
The Ds\Vector::map() function is an inbuilt function in PHP which is used to return the result of a callback after applying to each value in… Read More
The Ds\Vector::copy() function is an inbuilt function in PHP which is used to create a copy of given vector. Syntax: Ds\Vector public Ds\Vector::copy( void )… Read More
The Ds\Vector::merge() function is an inbuilt function in PHP which is used to merge all the elements to the vector. Syntax:  Ds\Vector public Ds\Vector::merge( $values… Read More

Start Your Coding Journey Now!