(PECL ds >= 1.0.0)
Ds\Vector::last — Returns the last value
Ta funkcja nie posiada parametrów.
The last value in the vector.
UnderflowException if empty.
Przykład #1 Ds\Vector::last() example
<?php
$vector = new \Ds\Vector([1, 2, 3]);
var_dump($vector->last());
?>
Powyższy przykład wyświetli coś podobnego do:
int(3)