Returns the last value.
Returns the last value in the vector.
This function has no parameters.
The last value in the vector.
UnderflowException if empty.
Example #1 Ds\Vector::last example
<?php$vector = new \Ds\Vector([1, 2, 3]);var_dump($vector->last());?>
The above example will output something similar to:
int(3)