(PHP 3>= 3.0.7, PHP 4 )
yp_match -- 매치(match)된 라인을 반환합니다.
Description
string
yp_match ( string domain, string map, string key)
yp_match()지정된 맵(map)의 범위외에서 통과된 키와 조합된 값이나 FALSE를 반환합니다.
이 키 값은 정확한 것이어야 합니다.
예 1. NIS 매치(match)의 예문 <?php
$entry = yp_match ($domain, "passwd.byname", "joe");
echo "매치(Match)된 목록 : " . $entry;
?> |
|
이 경우에는 이렇게 될 수 있습니다: joe:##joe:11111:100:Joe
User:/home/j/joe:/usr/local/bin/bash
참조: yp-get-default-domain()