mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fixing #26135
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@144503 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f6630a88f5
commit
9845d3a288
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue