FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » AND in the if statement
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
AND in the if statement [message #171234] Wed, 29 December 2010 19:37 Go to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
Ok smart people, answer me this as I have not yet found an answer googling.

if (a=1) echo "hello";

In BASIC, I can say, if a=1 AND b=2 then do this.
Meaning, both conditions MUST be true to get to "do this".


Is it possible to include AND in the PHP if and if so, how?

Maybe like, if (a=1 and b=2) echo "hello";
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: php-debug-faq-post in progress
Next Topic: using same variable twice on same page
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 06:20:27 GMT 2024

Total time taken to generate the page: 0.06992 seconds