yp_nextPHP ManualPrevNextyp_nextyp_next -- Returns the next key-value pair in the named
map.Descriptionstring[] yp_next(string domain, string map, string key);
yp_next() returns the next key-value pair in
the named map after the specified key or FALSE.
Example 1. Example for NIS next 1
2 <?php
3 $entry = yp_next($domain, "passwd.byname", "joe");
4
5 if(!$entry) {
6 echo yp_errno() . ": " . yp_err_string();
7 }
8
9 $key = key($entry);
10
11 echo "The next entry after joe has key " . $key
12 . " and value " . $entry[$key];
13 ?>
14
See also yp-get-default-domain().
PrevHomeNextyp_firstUpODBC functions
Wyszukiwarka