Skip to content

Tag Archives: PHP-ds_set

The Ds\Set::remove() function of Ds\Set class in PHP is an inbuilt function which is used to remove specific values from a Set instance. This function… Read More
The Ds\Set::count() function of Ds\Set class in PHP is an inbuilt function which is used to count the number of values present in the Set.… Read More
The Ds\Set::sum() function of Ds\Set class in PHP is an inbuilt function which is used to find the sum of all of the elements present… Read More
The Ds\Set::reversed() function of Ds\Set class in PHP is an inbuilt function which is used to create a copy of the original Set with values… Read More
The Ds\Set::toArray() function of Ds\Set class in PHP is an inbuilt function which is used to convert the Set into an associative array. This does… Read More
The Ds\Set::sort() function of DS\Set class in PHP is used to in-place sort the elements of a specified Set instance according to the values. By… Read More
The Ds\Set::allocate() function is an inbuilt function in PHP which is used to allocate memory for required capacity. Syntax: void public Ds\Set::allocate( $capacity ) Parameters:… Read More
The Ds\Set::contains() function is an inbuilt function in PHP which is used to check the given value exists in the set or not. This function… Read More
The Ds\Set::copy() function is an inbuilt function in PHP which is used to returns the copy of the set element. Syntax: Ds\Set public Ds\Set::copy( void… Read More
The Ds\Set::first() function is an inbuilt function in PHP which returns the first element of the Set. Syntax:   void public Ds\Set::first( void ) Parameter: This… Read More
The Ds\Set::add() function is an inbuilt function in PHP which is used to add values to the set. Syntax: void public Ds\Set::add( $values ) Parameters:… Read More
The Ds\Set::capacity() function is an inbuilt function in PHP which is used to return the capacity of the set. Syntax: int public Ds\Set::capacity( void )… Read More
The Ds\Set::last() function is an inbuilt function in PHP which is used to return the last element from the Set instance. Syntax:   void public Ds\Set::last(… Read More
The Ds\Set::clear() function is an inbuilt function in PHP which is used to remove all values from the set. Syntax: void public Ds\Set::clear( void )… Read More

Start Your Coding Journey Now!