Skip to content

Tag Archives: PHP-DS\Collection

The Ds\Sequence::unshift() function is an inbuilt function in PHP which is used to add values to the font of the sequence. Syntax: void abstract public… Read More
The Ds\Sequence::sort() function is an inbuilt function in PHP which is used to sort the sequence element in the same place. Syntax: void abstract public… Read More
The Ds\Sequence::slice() function is an inbuilt function in PHP which is used to return the subsequence of given range. Syntax: Ds\Sequence abstract public Ds\Sequence::slice (… Read More
The Ds\Sequence::shift() function is an inbuilt function in PHP which is used to removes the first element from the sequence and return it. Syntax: mixed… Read More
The Ds\Sequence::sum() function is an inbuilt function in PHP which is used to return the sum of all values of the sequence. Syntax: number abstract… Read More
The Ds\Sequence::sorted() function is an inbuilt function in PHP which is used to return the sorted copy of sequence element. Syntax: Ds\Sequence abstract public Ds\Sequence::sorted(… Read More
The Ds\Sequence::allocate() function is an inbuilt function in PHP which is used to allocate enough memory for required capacity. Syntax: void abstract public Ds\Sequence::allocate (… Read More
The Ds\Sequence::pop() function is an inbuilt function in PHP which removes the last value from sequence and return it. Syntax: abstract public Ds\Sequence::pop( void )… Read More
The Ds\Sequence::get() function is an inbuilt function in PHP which returns the value at given index. Syntax: mixed abstract public Ds\Sequence::get ( int $index )… Read More
The Ds\Sequence::push() function is an inbuilt function in PHP which adds values to the end of the sequence. Syntax: void abstract public Ds\Sequence::push( $values )… Read More
The Ds\Sequence::join() function is an inbuilt function in PHP which is used to join all values as string. Syntax: string abstract public Ds\Sequence::join ([ string… Read More
The Ds\Sequence::find() function is an inbuilt function in PHP which is used to find the value from the sequence. If the value present in the… Read More
The Ds\Sequence::insert() function is an inbuilt function in PHP which is used to insert value in the sequence at the given index. Syntax: void abstract… Read More
The Ds\Sequence::merge() function is an inbuilt function in PHP which returns a sequence after adding all given values to the sequence. Syntax: abstract public Ds\Sequence::merge(… Read More
The Ds\Sequence::first() function is an inbuilt function in PHP which is used to return the first element from the sequence. Syntax: mixed abstract public Ds\Sequence::first… Read More