homepage Welcome to WebmasterWorld Guest from 23.22.76.170
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library : Charter : Moderators: coopster & eelixduppy & jatar k

PHP Server Side Scripting Forum

    
PHP compare order?
Does it matter in php?
HeadBut




msg:3751585
 9:55 pm on Sep 24, 2008 (gmt 0)

In PHP does it matter which way you compare?

if("Registesr" == $SomeVariableOr['Thing']){DoSomething();}
Or
If($SomeVariableOr['Thing'] == "Register"){DoSomething();}

Thanks

 

eelixduppy




msg:3751592
 10:13 pm on Sep 24, 2008 (gmt 0)

Not for this case. It would obviously matter if you were using other comparison operators such as less than (<) or greater than (>), though.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved