|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-08 18:15 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon May 18 15:00:01 2026 UTC |
Description: ------------ Problem occured while I'am using the if-else statment... Is hard to explain... lets look at the code... Reproduce code: --------------- //declaring variable $var1 = "words"; if($var1 == 0){ echo "Is a zero"; }else if($var1 == "words"){ echo "Is a string"; } Expected result: ---------------- Is a string Actual result: -------------- Is a zero