PHP: yp_match - Manual

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: Sat, 27 Jan 2007

view this page in

# yp_match

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

yp_match -- Returns the matched line

## Description

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

yp_match() returns the value associated with the passed key out of the specified map or `FALSE`. This key must be exact.

Пример 1. Example for NIS match

`<?php $entry = yp_match($domain, "passwd.byname", "joe"); echo "Matched entry is: " . $entry; ?>`

The above code will produce :

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

See also yp_get_default_domain().

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

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST