Ds\Deque::pop
Removes and returns the last value
説明
public mixed Ds\Deque::pop()
戻り値
The removed last value.
エラー / 例外
UnderflowException if empty.
例
例1 Ds\Deque::pop example
<?php
$deque = new \Ds\Deque([1, 2, 3]);
var_dump($deque->pop());
var_dump($deque->pop());
var_dump($deque->pop());
?>