SommaireTelecharger la documentationChapitre suivantChapitre precedent  

  .: News :.: Edito :.: Scripts :.: Forum :.: Erreurs :.: Jobs :. 
 
Sommaire

NIS

yp_get_default_domain
yp_order
yp_master
yp_match
yp_first
yp_next

6.106.6 yp_next

[ Exemples avec yp_next ]   PHP 3>= 3.0.7, PHP 4 >= 4.0.0

Description

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.


Chapitre précédentChapitre suivantAccueil nexen.net