#32528 [Opn->Bgs]: If (comparison) {do} function not documented neither properly working
| From: | philip@php.net | Date: | Fri, 01 Apr 2005 05:21:48 +0000 |
| Subject: | #32528 [Opn->Bgs]: If (comparison) {do} function not documented neither properly working | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969367211@lists.php.net to get a copy of this message | ||
ID: 32528
Updated by: philip@php.net
Reported By: grasso789 at versanet dot de
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: All
PHP Version: 4.3.10
New Comment:
It's very much documented:
http://php.net/manual/en/language.control-structures.php#control-structures.if
The parse error is because of a missing ;
Previous Comments:
------------------------------------------------------------------------
[2005-04-01 06:49:49] grasso789 at versanet dot de
Description:
------------
PHP has the IF (boolean expression) {...} function which is not
documented at all. I am searching for a logical if function since I
want to compare numbers.
Reproduce code:
---------------
if (0<1) {echo("The world does still exist!")}
Expected result:
----------------
The world does still exist!
Actual result:
--------------
Parse error: parse error, expecting
','' or ';'' in ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32528&edit=1