Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : YP/NIS Functions : yp_match

yp_match

Returns the matched line (PHP 4, PHP 5 <= 5.0.5)
string yp_match ( string domain, string map, string key )

Example 2685. Example for NIS match

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

The above example will output something similar to:

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

Change Language


Follow Navioo On Twitter
yp_all
yp_cat
yp_err_string
yp_errno
yp_first
yp_get_default_domain
yp_master
yp_match
yp_next
yp_order
eXTReMe Tracker