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)