|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-21 11:00 UTC] vinod dot lakhanpal at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 16:00:01 2025 UTC |
Description: ------------ Hi Just try this $tmp="flight&Hotel&Car"; if($tmp=="flight&Hotel&Car"){ echo "Hello vinod"; }else{ echo "Bye vinod"; } to your surprise it will display "Bye vinod" where as it should have displayed "Hello vinod". Its really astonishing that nobody pointed this error in php. Reproduce code: --------------- $tmp="flight&Hotel&Car"; if($tmp=="flight&Hotel&Car"){ echo "Hello vinod"; }else{ echo "Bye vinod"; } Expected result: ---------------- Hello vinod Actual result: -------------- Bye vinod