ronabop Tue Mar 20 21:17:28 2001 EDT
Modified files:
/phpdoc/en/functions nis.xml
Log:
Updating yp_first example to proper use of array return.
Index: phpdoc/en/functions/nis.xml
diff -u phpdoc/en/functions/nis.xml:1.8 phpdoc/en/functions/nis.xml:1.9
--- phpdoc/en/functions/nis.xml:1.8 Fri Mar 16 17:11:54 2001
+++ phpdoc/en/functions/nis.xml Tue Mar 20 21:17:28 2001
@@ -210,10 +210,10 @@
<title>Example for the NIS first</title>
<programlisting role="php">
<?php
- $entry = yp_first($domain, "passwd.byname");
- $key = key($entry);
- echo "First entry in this map has key " . $key
- . " and value " . $entry[$key];
+$entry = yp_first($domain, "passwd.byname");
+$key = $entry ["key"];
+$value = $entry ["value"];
+echo "First entry in this map has key " . $key . " and value " . $value;
?>
</programlisting>
</example>