didou Mon Nov 17 15:34:13 2003 EDT
Modified files: /phpdoc/en/reference/nis/functions yp-first.xml Log: fixing #26135 Index: phpdoc/en/reference/nis/functions/yp-first.xml diff -u phpdoc/en/reference/nis/functions/yp-first.xml:1.2 phpdoc/en/reference/nis/functions/yp-first.xml:1.3 --- phpdoc/en/reference/nis/functions/yp-first.xml:1.2 Wed Apr 17 02:42:13 2002 +++ phpdoc/en/reference/nis/functions/yp-first.xml Mon Nov 17 15:34:13 2003 @@ -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; ?> ]]>