Ds\Sequence::last

(PECL ds >= 1.0.0)

Ds\Sequence::lastReturns the last value

˵��

abstract public Ds\Sequence::last ( void ) : mixed

Returns the last value in the sequence.

����

�˺���û�в�����

����ֵ

The last value in the sequence.

�����쳣

UnderflowException if empty.

����

Example #1 Ds\Sequence::last() example

<?php
$sequence 
= new \Ds\Vector([123]);
var_dump($sequence->last());
?>

�������̵���������ڣ�

int(3)