Ds\Deque::last

(PECL ds >= 1.0.0)

Ds\Deque::lastReturns the last value

Opis

public Ds\Deque::last ( void ) : mixed

Returns the last value in the deque.

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

The last value in the deque.

Błędy/Wyjątki

UnderflowException if empty.

Przykłady

Przykład #1 Ds\Deque::last() example

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

Powyższy przykład wyświetli coś podobnego do:

int(3)
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top