★ wanayoo — archive 1999 http://www.php.net/manual/function.yp-first.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to YP/NIS
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
YP/NIS
* yp_get_default_domain
* yp_order
* yp_master
* yp_match
* yp_first
* yp_next
Manual: yp_first
View the source code for this pageSearch the site



Previous page
 yp_match
 Updated
Sat, 12 Aug 2000
yp_next 
Next page


yp_first

(PHP3 >= 3.0.7, PHP4 )

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

Description

array yp_first (string domain, string map)

Yp_first() returns the first key-value pair from the named map in the named domain, otherwise FALSE.

Example 1. Example for the NIS first


<?php
    $entry = yp_first($domain, "passwd.byname");
    $key = key($entry);
    echo "First entry in this map has key " . $key 
          . " and value " . $entry[$key];
?>
      

See also yp-get-default-domain()


 About Notes


Previous page
 yp_match
 Updated
Sat, 12 Aug 2000
yp_next 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.