|
Ds\Deque::getReturns the value at a given index. Description
public mixed Ds\Deque::get
( int
$index
)Returns the value at a given index. Parameters
Return ValuesThe value at the requested index. Errors/ExceptionsOutOfRangeException if the index is not valid. ExamplesExample #1 Ds\Deque::get example
<?php The above example will output something similar to: string(1) "a" string(1) "b" string(1) "c" Example #2 Ds\Deque::get example using array syntax
<?php The above example will output something similar to: string(1) "a" string(1) "b" string(1) "c" |