Ds\Deque::first

(PECL ds >= 1.0.0)

Ds\Deque::firstReturns the first value in the deque

˵��

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

Returns the first value in the deque.

����

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

����ֵ

The first value in the deque.

�����쳣

UnderflowException if empty.

����

Example #1 Ds\Deque::first() example

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

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

int(1)