Ds\Vector::first

Returns the first value in the vector.

Beschreibung

public mixed Ds\Vector::first ( void )

Returns the first value in the vector.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

The first value in the vector.

Fehler/Exceptions

UnderflowException if empty.

Beispiele

Beispiel #1 Ds\Vector::first example

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

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

int(1)