Open In App

PHP | Ds\Sequence get() Function

Last Updated : 21 Aug, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report
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 )
Parameter: This function accepts single parameter $index which holds the index to access element. Return value: This function returns the value at given index. Below programs illustrate the Ds\Sequence::get() function in PHP: Program 1:
Output:
string(1) "G"
string(1) "E"
int(4)
string(1) "1"
int(1)
Program 2:
Output:
string(1) "G"
string(1) "E"
string(1) "S"
string(1) "2"
int(2)
string(1) "1"
Reference: http://php.net/manual/en/ds-sequence.get.php

Next Article

Similar Reads