PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

yp_get_default_domain> <yp_errno
Last updated: Fri, 10 Oct 2008

view this page in

yp_first

(PHP 4, PHP 5 <= 5.0.5)

yp_firstRetourne la première paire clé/valeur d'une carte donnée

Description

array yp_first ( string $domain , string $map )

Retourne la première paire clé/valeur de la carte map du domaine domain .

Liste de paramètres

domain

Le nom du domaine NIS.

map

La carte NIS.

Valeurs de retour

Retourne le première paire clé/valeur d'une carte donnée, ou FALSE si une erreur survient.

Exemples

Exemple #1 Exemple avec yp_first()

<?php
$entry 
yp_first($domain"passwd.byname");

$key key($entry);
$value $entry[$key];

echo 
"La première entrée de cette carte est " $key " et sa valeur est " $value;
?>



add a note add a note User Contributed Notes
yp_first
There are no user contributed notes for this page.

yp_get_default_domain> <yp_errno
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites