cvs: phpdoc /en/functions var.xml

From: Date: Mon, 19 Mar 2001 09:58:58 +0000
Subject: cvs: phpdoc /en/functions var.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969334740@lists.php.net to get a copy of this message
torben Mon Mar 19 01:58:58 2001 EDT Modified files: /phpdoc/en/functions var.xml Log: Clarification of unset() return value. Index: phpdoc/en/functions/var.xml diff -u phpdoc/en/functions/var.xml:1.40 phpdoc/en/functions/var.xml:1.41 --- phpdoc/en/functions/var.xml:1.40 Mon Mar 19 00:45:06 2001 +++ phpdoc/en/functions/var.xml Mon Mar 19 01:58:57 2001 @@ -1028,7 +1028,13 @@ </funcprototype> </funcsynopsis> <para> - <function>unset</function> destroys the specified variables. + <function>unset</function> destroys the specified variables. Note + that in PHP 3, <function>unset</function> will always return true + (actually, the integer value 1). In PHP 4, however, + <function>unset</function> is no longer a true function: it is + now a statement. As such no value is returned, and attempting to + take the value of <function>unset</function> results in a parse + error. </para> <para> <example>

« previous php.doc (#969334740) next »