cvs: phpdoc-it /reference/var/functions isset.xml

From: Date: Mon, 17 Jun 2002 20:33:47 +0000
Subject: cvs: phpdoc-it /reference/var/functions isset.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969346549@lists.php.net to get a copy of this message
darvina Mon Jun 17 16:33:47 2002 EDT Modified files: /phpdoc-it/reference/var/functions isset.xml Log: Update to En 1.5 Index: phpdoc-it/reference/var/functions/isset.xml diff -u phpdoc-it/reference/var/functions/isset.xml:1.2 phpdoc-it/reference/var/functions/isset.xml:1.3 --- phpdoc-it/reference/var/functions/isset.xml:1.2 Wed Apr 17 03:08:52 2002 +++ phpdoc-it/reference/var/functions/isset.xml Mon Jun 17 16:33:46 2002 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/var.xml, last change in rev 1.2 --> <!-- last change to 'isset' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> <!-- OLD-Revision: 1.104/EN.1.2 --> <refentry id="function.isset"> <refnamediv> @@ -11,8 +11,8 @@ <refsect1> <title>Descrizione</title> <methodsynopsis> - <type>boolean</type><methodname>isset</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> + <type>bool</type><methodname>isset</methodname> + <methodparam><type>mixed</type><parameter>variabile</parameter></methodparam> <methodparam choice="opt"><parameter>...</parameter></methodparam> </methodsynopsis> <note> @@ -21,7 +21,7 @@ </para> </note> <simpara> - Restituisce &true; se <parameter>var</parameter> esiste; + Restituisce &true; se la <parameter>variabile</parameter> esiste; &false; in caso contrario. </simpara> <para> @@ -33,26 +33,43 @@ <informalexample> <programlisting role="php"> <![CDATA[ -$a = "test"; -$b = "anothertest"; - -echo isset ($a); // TRUE -echo isset ($a, $b) //TRUE - -unset ($a); -echo isset ($a); // FALSE -echo isset ($a, $b); //FALSE +<?php + $a = "test"; + $b = "anothertest"; + echo isset ($a); // TRUE + echo isset ($a, $b) //TRUE + unset ($a); + echo isset ($a); // FALSE + echo isset ($a, $b); //FALSE $foo = NULL; -print isset ($foo); // FALSE + print isset ($foo); // FALSE +?> +]]> + </programlisting> + </informalexample> + </para> + <para> + Questo esempio utilizza gli elementi di un array: + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php + $a = array ('test' => 1, 'hello' => null); + 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> - Vedere anche <function>empty</function> e - <function>unset</function>. + Vedere anche <function>empty</function>, + <function>unset</function> e + <function>array_key_exists</function>. </simpara> </refsect1> </refentry>

« previous php.doc (#969346549) next »