php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #32528 If (comparison) {do} function not documented neither properly working
Submitted: 2005-04-01 06:49 UTC Modified: 2005-04-01 09:08 UTC
From: grasso789 at versanet dot de Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.10 OS: All
Private report: No CVE-ID: None
 [2005-04-01 06:49 UTC] 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  ...

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-01 07:21 UTC] philip@php.net
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 ;
 [2005-04-01 09:08 UTC] vrana@php.net
I guess today is April 1st :-).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Aug 16 16:01:28 2024 UTC