(PHP3 >= 3.0.7, PHP4 )
yp_next -- Returns the next key-value pair in the named
map.
Description
array 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.
Példa 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().