|
Ds\Vector::getReturns the value at a given index. Description
public mixed Ds\Vector::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\Vector::get example
<?php The above example will output something similar to: string(1) "a" string(1) "b" string(1) "c" Example #2 Ds\Vector::get example using array syntax
<?php The above example will output something similar to: string(1) "a" string(1) "b" string(1) "c" |