Home > PHP > Function > YP/NIS > yp_match()

yp_match()

yp_match - Returns the matched line

Syntax

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

Arguments

  • domain - The NIS domain name.
  • map - The NIS map.
  • key - This key must be exact.

Description

Returns the value associated with the passed key out of the specified map.

Version

PHP 4, 5 <= 5.0.5

Return value

Returns the value, or FALSE on errors.