|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #47 elseif missing expr
Submitted: 1998-02-08 20:37 UTC Modified: 1998-02-09 08:39 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: ars at ziplink dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0 Latest CVS OS: FreeBSD
Private report: No CVE-ID: None
 [1998-02-08 20:37 UTC] ars at ziplink dot net
In the docs on the part about elseif it has:

if ($a>$b) {
    print "a is bigger than b";
} elseif {
    print "a is equal to b";
} else {
    print "a is smaller than b";

I think it's missing the ($a=$b) in the elseif.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-09 08:39 UTC] rasmus
 [2020-02-19 10:21 UTC]
Automatic comment from SVN on behalf of nikic
Log: Operator Precedence - Add missing `??=`

Patch by SpacePossum.

Closes php/doc-en#47.
 [2021-02-24 21:09 UTC]
Automatic comment on behalf of
Log: Merge pull request #47: Fix #63480: Warning on using the SSH2 Session resource in the uri
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed May 12 06:01:23 2021 UTC