cvs: phpdoc-fr /reference/nis/functions yp-first.xml
| From: | Mehdi Achour | Date: | Mon, 17 Nov 2003 20:35:46 +0000 |
| Subject: | cvs: phpdoc-fr /reference/nis/functions yp-first.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-918@lists.php.net to get a copy of this message | ||
didou Mon Nov 17 15:35:46 2003 EDT
Modified files:
/phpdoc-fr/reference/nis/functions yp-first.xml
Log:
fixing #26135
Index: phpdoc-fr/reference/nis/functions/yp-first.xml
diff -u phpdoc-fr/reference/nis/functions/yp-first.xml:1.2
phpdoc-fr/reference/nis/functions/yp-first.xml:1.3
--- phpdoc-fr/reference/nis/functions/yp-first.xml:1.2 Sat May 3 11:09:44 2003
+++ phpdoc-fr/reference/nis/functions/yp-first.xml Mon Nov 17 15:35:46 2003
@@ -25,11 +25,13 @@
<programlisting role="php">
<![CDATA[
<?php
-$entree = yp_first($domain, "passwd.byname");
-$cle = $entry ["key"];
-$valeur = $entry ["value"];
+$entry = yp_first($domain, "passwd.byname");
+
+$key = key($entry);
+$value = $entry[$key];
+
echo "La première entrée de cette carte est " . $key
- . " et sa valeur est " . $entry[$key];
+ . " et sa valeur est " . $value;
?>
]]>
</programlisting>