yp_first
(PHP3 >= 3.0.7 , PHP4)
yp_first --- 从地图传回首先的key-value对
语法 :
array yp_first
(string domain, string map)说明 :
yp_first( )从名称 domain中的 map,传回首先的 key-value对,否则传回FALSE。
Example :
<?php
$entry = yp_first($domain, "passwd.byname");
$key = key($entry); echo "First entry in this map has key " . $key . " and value " . $entry[$key];
?>