Skip to content

Tag Archives: PHP-ds_vector

The Ds\Vector::sum() function is an inbuilt function in PHP which returns the sum of all the elements of the vector. Syntax: number public Ds\Vector::sum( void… Read More
The Ds\Vector::toArray() function is an inbuilt function in PHP which is used to convert the vector into an array. All the elements of the vector… Read More
The Ds\Vector::clear() function is an inbuilt function in PHP which is used to clear the vector elements by removing all the elements from the vector.… Read More
The Ds\Vector::contains() function is an inbuilt function in PHP which is used to check the vector contains given value or not. Syntax: bool public Ds\Vector::contains(… Read More
The Ds\Vector::count() function is an inbuilt function in PHP which is used to count the number of elements in the vector. Syntax: int public Ds\Vector::count(… Read More
The Ds\Vector::push() function is an inbuilt function in PHP which is used to add elements to the end of the vector. Syntax: void public Ds\Vector::push(… Read More
The Ds\Vector::last() function is an inbuilt function in PHP which is used to return the last element of the vector. Syntax: mixed public Ds\Vector::last( void… Read More
The Ds\Vector::jsonSerialize() function is an inbuilt function in PHP which is used to return the element which can be converted to JSON. Syntax: mixed public… Read More
The Ds\Vector::apply() function is an inbuilt function in PHP which is used to update all values in the array by applying the callback function to… Read More
The Ds\Vector::get() function is an inbuilt function in PHP which is used to return the element at the given index. Syntax: mixed public Ds\Vector::get( $index… Read More
The Ds\Vector::insert() function is an inbuilt function in PHP which is used to insert the element into the vector at the given index. Syntax: void… Read More
The Ds\Vector::join() function is an inbuilt function in PHP which is used to join all the elements of vector as a string using the separator… Read More
The Ds\Vector::find() function is an inbuilt function in PHP which is used to find the index of the element in the vector. Syntax: mixed public… Read More
The Ds\Vector::isEmpty() function is an inbuilt function in PHP which is used to check the vector is empty or not. Syntax: bool public Ds\Vector::isEmpty( void… Read More
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

Start Your Coding Journey Now!