PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

yp_get_default_domain> <yp_errno
Last updated: Fri, 05 Sep 2008

view this page in

yp_first

(PHP 4, PHP 5 <= 5.0.5)

yp_first指定したマップから最初のキー/値の組を返す

説明

array yp_first ( string $domain , string $map )

ドメイン domain のマップ map から、最初のキー/値の組を取得します。

パラメータ

domain

NIS ドメイン名。

map

NIS マップ。

返り値

最初のキー/値 の組を表す配列、あるいはエラー時に FALSE を返します。

例1 NIS の最初のエントリを取得する例

<?php
$entry 
yp_first($domain"passwd.byname");

$key key($entry);
$value $entry[$key];

echo 
"このマップの最初のエントリのキーは " $key "、そして値は " $value;
?>



add a note add a note User Contributed Notes
yp_first
There are no user contributed notes for this page.

yp_get_default_domain> <yp_errno
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites