yp_match

(PHP 3>= 3.0.7, PHP 4 >= 4.0.0)

yp_match -- Vrßtit odpovφdajφcφ zßznam

Popis

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

yp_match() vracφ hodnotu asociovanou v danΘ map∞ s p°edan²m klφΦem nebo FALSE. KlφΦ musφ b²t dßn p°esn∞.

P°φklad 1. Ukßzka NIS match

<?php
$entry = yp_match ($domain, "passwd.byname", "joe");
echo "Odpovφdajφcφ zßznam je: " . $entry;
?>

V tomto p°φpad∞ by to mohlo b²t: joe:##joe:11111:100:Joe User:/home/j/joe:/usr/local/bin/bash

Viz takΘ yp-get-default-domain()