philip          Fri May 24 15:06:15 2002 EDT

  Modified files:              
    /phpdoc/en/reference/var/functions  isset.xml 
  Log:
  expanded array example to include null.  also included array_key_exists into
  the example and see also.
  
  
Index: phpdoc/en/reference/var/functions/isset.xml
diff -u phpdoc/en/reference/var/functions/isset.xml:1.3 
phpdoc/en/reference/var/functions/isset.xml:1.4
--- phpdoc/en/reference/var/functions/isset.xml:1.3     Fri May 24 14:46:15 2002
+++ phpdoc/en/reference/var/functions/isset.xml Fri May 24 15:06:14 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
   <refentry id="function.isset">
    <refnamediv>
@@ -55,18 +55,21 @@
       <programlisting role="php">
 <![CDATA[
 <?php
-    $a = array ('test' => 1);
+    $a = array ('test' => 1, 'hello' => null);
 
-    echo isset ($a['test']); // TRUE
-    echo isset ($a['foo']); // FALSE
+    echo isset ($a['test']);  // TRUE
+    echo isset ($a['foo']);   // FALSE
+    echo isset ($a['hello']); // FALSE
+    echo array_key_exists('hello', $a); // TRUE
 ?>
 ]]>
       </programlisting>
      </informalexample>
     </para>
     <simpara>
-     See also <function>empty</function> and
-     <function>unset</function>.
+     See also <function>empty</function>,
+     <function>unset</function>, and 
+     <function>array_key_exists</function>.
     </simpara>
    </refsect1>
   </refentry>


Reply via email to