Query: yp_first
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
YP_FIRST(3) 1 YP_FIRST(3) yp_first - Returns the first key-value pair from the named mapSYNOPSISarray yp_first (string $domain, string $map)DESCRIPTIONGets the first key-value pair from the named $map in the named $domain.PARAMETERSo $domain - The NIS domain name. o $map - The NIS map.RETURN VALUESReturns the first key-value pair as an array on success, or FALSE on errors.EXAMPLESExample #1 Example for the NIS first <?php $entry = yp_first($domain, "passwd.byname"); $key = key($entry); $value = $entry[$key]; echo "First entry in this map has key " . $key . " and value " . $value; ?>SEE ALSOyp_next(3), yp_get_default_domain(3). PHP Documentation Group YP_FIRST(3)
Related Man Pages |
---|
ypmatch(1) - sunos |
ypmatch(1) - v7 |
ypmatch(1) - x11r4 |
ypmatch(1) - bsd |
ypmatch(1) - php |