yp_master
<<<
yp_match yp_next
>>>

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.13 yp_match()Retourne la ligne associée

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

string  yp_match ( string   domain , string   map , string   key )

yp_match retourne la valeur associée à la clé passée en argument, pour la carte spécifiée, ou FALSE . La clé doit exister et être exacte.

Exemple avec yp_match

<?php
$entry
= yp_match($domain, "passwd.byname", "joe");
echo
'La valeur trouvée est : ' . $entry;
?>

Voir aussi yp_get_default_domain .

<< yp_match >>
yp_master NIS yp_next