yp_next
(PHP 3 >= 3.0.7, PHP 4, PECL)
yp_next -- マップ map から次のキー/値の組を返す
説明
array
yp_next ( string domain, string map, string key )
yp_next() は、指定した key の後にあるマップ
map の次のキー/値の組、または FALSE を返します。
例 1. NIS next の例
<?php $entry = yp_next ($domain, "passwd.byname", "joe");
if (!$entry) { echo "No more entries found\n"; <!-- echo yp_errno() . ": " . yp_err_string(); --> }
$key = key ($entry);
echo "The next entry after joe has key " . $key . " and value " . $entry[$key]; ?>
|
|
yp-get-default-domain()も参照ください。