yp_errno
<<<
yp_first yp_get_default_domain
>>>

8.81 NIS
8 Référence des fonctions
 Manuel PHP

Introduction
Pré-requis
Installation
Configuration à l'exécution
Constantes pré-définies
yp_all
yp_cat
yp_err_string
yp_errno
->yp_first
yp_get_default_domain
yp_master
yp_match
yp_next
yp_order

8.81.10 yp_first() Retourne le premier couple (clé ; valeur) d'une carte donnée

[ Exemples avec yp_first ]   PHP 3>= 3.0.7, PHP 4 , PHP 5

array  yp_first ( string   domain , string   map )

yp_first retourne le premier couple (clé ; valeur) d'une carte donnée, ou FALSE .

Exemple avec yp_first

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

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

echo
"La première entrée de cette carte est " . $key
     
. " et sa valeur est " . $value;
?>

Voir aussi yp_next et yp_get_default_domain .

<< yp_first >>
yp_errno NIS yp_get_default_domain