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

search for in the

yp_next> <yp_master
Last updated: Fri, 22 Aug 2008

view this page in

yp_match

(PHP 4, PHP 5 <= 5.0.5)

yp_match Retorna la linea compaƱera (pareja).

Descripcion

cadena yp_match ( cadena $dominio , cadena $ mapa , cadena $ teclea )

yp_match(nombre de la funcion)() Retorna el valor asociado con la llave pasada fuera del mapa especificado o FALSO. esta llave tiene que ser exacta.

Example #1 Ejemplo para NIS parejo

<?php
$entry
=yp_match($dominio,"passwd.byname","joe");
if(!
$entry) {
    echo 
yp_errno().":".yp_err_string();
}
echo 
"La entrada pareada es:".$ entry;?>

En este caso esto puede ser: Joe:##joe:11111:100:joe usuario:/hogar/j/joe: User:/usr/local/bin/bash

Ver tambien: yp_get_default_domain yp_errno y yp_err_string



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

yp_next> <yp_master
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites