8.84 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.84.14 yp_next()
Retourne le couple (clé ; valeur) suivant d'une carte donnée
[ Exemples avec yp_next ] PHP 3 >= 3.0.7, PHP 4, PHP 5 <= 5.0.4
array
yp_next (
string
domain
,
string
map
,
string
key
)
yp_next
retourne le couple (clé ; valeur)
suivant la clé donnée d'une carte donnée ou
FALSE
.
| Exemple avec yp_next |
<?php $entry = yp_next($domain, "passwd.byname", "joe"); if (!$entry) { echo "Plus d'autres entrées.\n"; echo ""; } $key = key($entry); echo "L'entrée suivante après \"joe\" a la clé " . $key . " et la valeur " . $entry[$key]; ?>
|
Voir aussi
yp_first
et
yp_get_default_domain
.
|