Ds\Sequence::first

(PECL ds >= 1.0.0)

Ds\Sequence::firstReturns the first value in the sequence

Opis

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

Returns the first value in the sequence.

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

The first value in the sequence.

Błędy/Wyjątki

UnderflowException if empty.

Przykłady

Przykład #1 Ds\Sequence::first() example

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

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

int(1)
add a note add a note

User Contributed Notes

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