php.net |  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
Votes:1
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-09 08:39 UTC] rasmus
Fixed
 [2020-02-19 10:21 UTC] nikic@php.net
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&revision=349236
Log: Operator Precedence - Add missing `??=`

Patch by SpacePossum.

Closes php/doc-en#47.
 [2021-02-24 21:09 UTC] langemeijer@php.net
Automatic comment on behalf of casper.langemeijer@procurios.nl
Revision: http://git.php.net/?p=pecl/networking/ssh2.git;a=commit;h=1432b041e7cb605f6dc674172e408c4477437aa8
Log: Merge pull request #47: Fix #63480: Warning on using the SSH2 Session resource in the uri
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 02:01:28 2024 UTC