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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: grasso789 at versanet dot de
New email:
PHP Version: OS:

 

 [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

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: Wed Sep 11 14:01:28 2024 UTC