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
Re: AND in the if statement [message #171239 is a reply to message #171234] Wed, 29 December 2010 20:28 Go to previous messageGo to previous message
Derek Turner is currently offline  Derek Turner
Messages: 48
Registered: October 2010
Karma:
Member
On Wed, 29 Dec 2010 12:37:08 -0700, richard wrote:

> 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";

rtfm or jfgi
[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: Wed Nov 27 01:07:31 GMT 2024

Total time taken to generate the page: 0.04931 seconds