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

yp_first()

yp_first - Returns the first key-value pair from the named map

Syntax

array yp_first (string $domain, string $map)

Arguments

  • domain - The NIS domain name.
  • map - The NIS map.

Description

Gets the first key-value pair from the named map in the named domain.

Version

PHP 4, 5 <= 5.0.5

Return value

Returns the first key-value pair as an array on success, or FALSE on errors.