|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-19 01:54 UTC] rasmus@php.net
-Status: Open
+Status: Bogus
[2010-07-19 01:54 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 13:00:02 2025 UTC |
Description: ------------ Pretty self explanatory code, is this how PHP is supposed to behave? Test script: --------------- <?php // outputs string instead of else? $foo = true; if ($foo == false) { echo "not"; } elseif ($foo == "string") { echo "string"; } else { echo "else"; } ?> Expected result: ---------------- output of "else" Actual result: -------------- output of "string"