The Ds\Sequence::remove() function is an inbuilt function in PHP which is used to remove and return a value by index.
mixed abstract public Ds\Sequence::remove ( int $index )
Parameters: This function accepts a single parameter $index which holds the index of value to remove.
Return value: This function returns the value that was removed.
Below programs illustrate the Ds\Sequence::remove() function in PHP:
string(3) "GFG" string(5) "Geeks"