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>
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Chris Newbill
- Re: [PHP-DOC] cvs: phpdoc /en/functions var.xml Daniel Beckham
- Re: [PHP-DOC] cvs: phpdoc /en/functions var... Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jesus M. Castagnetto
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Torben Wilson
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Hojtsy Gabor
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Daniel Beckham
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jeroen van Wolffelaar
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Zak Greant
- [PHP-DOC] cvs: phpdoc /en/functions var.xml Jeroen van Wolffelaar
