Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.yp all
.yp cat
.yp err string
.yp errno
.yp first
.yp get default domain
.yp master
.yp match
.yp next
.yp order
 
   

  yp_match  


yp_match

(PHP 3 >= 3.0.7, PHP 4, PHP 5 <= 5.0.4)

yp_match -- Retourne la ligne associée

Description

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 1. Exemple avec yp_match()

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

L'exemple ci-dessus va afficher :

joe:##joe:11111:100:Joe User:/home/j/joe:/usr/local/bin/bash

Voir aussi yp_get_default_domain().


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.