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

search for in the

yp_next> <yp_master
Last updated: Fri, 20 May 2011

view this page in

yp_match

(PHP 4, PHP 5 <= 5.0.5)

yp_matchDevuelve la línea asociada

Descripción

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

Devuelve el valor asociado con la key pasada del map indicado.

Parámetros

domain

El nombre de dominio NIS.

map

El mapa NIS.

key

Esta clave debe ser exacta.

Valores devueltos

Devuelve el valor, o FALSE en caso de error.

Ejemplos

Example #1 Ejemplo con yp_match()

<?php
$entry 
yp_match($domain"passwd.byname""joe");
echo 
"Entrada asociada es: " $entry;
?>

El resultado del ejemplo sería algo similar a:

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

Ver también



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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites