7.113 NIS
7 Index des fonctions
Manuel PHP
. Introduction . Pré-requis . Installation . Configuration à l'exécution . Constantes prédefinies . yp_all . yp_cat . yp_err_string . yp_errno ->yp_first . yp_get_default_domain . yp_master . yp_match . yp_next . yp_order
|
7.113.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
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 $entree = yp_first($domain, "passwd.byname"); $cle = $entry ["key"]; $valeur = $entry ["value"]; echo "La première entrée de cette carte est " . $key . " et sa valeur est " . $entry[$key]; ?>
|
Voir aussi
yp-get-default-domain
.
|