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.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
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"; } $key = key($entry); echo "L'entrée suivante après "joe" a la clé " . $key . " et la valeur " . $entry[$key]; ?>
|
Voir aussi
yp-get-default-domain
.
|