git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@144503 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Mehdi Achour 2003-11-17 20:34:13 +00:00
parent f6630a88f5
commit 9845d3a288

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/nis.xml, last change in rev 1.2 -->
<refentry id="function.yp-first">
<refnamediv>
@ -26,8 +26,10 @@
<![CDATA[
<?php
$entry = yp_first($domain, "passwd.byname");
$key = $entry ["key"];
$value = $entry ["value"];
$key = key($entry);
$value = $entry [$key];
echo "First entry in this map has key " . $key . " and value " . $value;
?>
]]>