Returns the last value.
Returns the last value in the vector.
Diese Funktion hat keine Parameter.
The last value in the vector.
UnderflowException if empty.
Beispiel #1 Ds\Vector::last example
<?php$vector = new \Ds\Vector([1, 2, 3]);var_dump($vector->last());?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
int(3)