cvs: phpdoc /en/functions nis.xml

From: Date: Wed, 21 Mar 2001 05:17:28 +0000
Subject: cvs: phpdoc /en/functions nis.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969334766@lists.php.net to get a copy of this message
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"> &lt;?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>

« previous php.doc (#969334766) next »