ID: 9202
Updated by: jmcastagnetto
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
Assigned To:
Comments:
Documentation fixed
Previous Comments:
---------------------------------------------------------------------------
[2001-02-09 22:45:12] [EMAIL PROTECTED]
The documentation for Unset() states:
Description
int unset (mixed var [, mixed var [, ...]])
unset() destroys the specified variables and returns true.
I have changed the type of this bug report to "Documentation Problem", since I have
been informed that Unset is not a function.
<?
$avariable = "test";
$avariable=="test" ? $avariable .=" No problem with is_bool" :
is_bool($avariable);
$avariable=="test" ? $avariable .=" No problem with isset" :
isset($avariable);
$avariable=="test" ? $avariable .=" No problem with empty" :
empty($avariable);
$avariable=="test" ? $avariable .=" Problem with unset" :
unset($avariable);
echo $avariable;
?>
Output is
Parse error: parse error in /home/httpd/html/mlr/unsetProblem.php on line 6
---------------------------------------------------------------------------
[2001-02-09 20:29:34] [EMAIL PROTECTED]
<?
$avariable = "test";
$avariable=="test" ? $avariable .=" No problem with is_bool" : is_bool($avariable);
$avariable=="test" ? $avariable .=" No problem with isset" : isset($avariable);
$avariable=="test" ? $avariable .=" No problem with empty" : empty($avariable);
$avariable=="test" ? $avariable .=" Problem with unset" : unset($avariable);
echo $avariable;
?>
Output is
Parse error: parse error in /home/httpd/html/mlr/unsetProblem.php on line 6
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9202&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]