PHP Doku:: Gibt das erste Schlüssel-Wert-Paar der angegebenen Map zurück - function.yp-first.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Sonstige Dienste ≥ YP/NIS ≥ YP/NIS-Funktionen ≥ yp_first

Ein Service von Reinhard Neidl - Webprogrammierung.

YP/NIS-Funktionen

<<yp_errno

yp_get_default_domain>>

yp_first

(PHP 4, PHP 5 <= 5.0.5)

yp_first — Gibt das erste Schlüssel-Wert-Paar der angegebenen Map zurück

Beschreibung

array yp_first ( string $domain , string $map )

yp_first() gibt das erste Schlüssel-Wert-Paar der angegebenen Map zurück, andernfalls FALSE.

Beispiel #1 Beispiel für den ersten NIS-Eintrag

<?php
$entry 
= yp_first($domain, "passwd.byname");

$key = key($entry);
$value = $entry[$key];

echo 
"First entry in this map has key " . $key . " and value " . $value;
?>

Siehe auch yp_next() und yp_get_default_domain().


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)