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 #171465 is a reply to message #171238] Wed, 05 January 2011 01:33 Go to previous messageGo to previous message
spambait is currently offline  spambait
Messages: 35
Registered: September 2010
Karma:
Member
In article <18a130wqz1i57$(dot)dlg(at)evanplatt(dot)sux>, richard <member(at)newsguy(dot)com> wrote:
> On Wed, 29 Dec 2010 11:42:41 -0800 (PST), Mike wrote:
>
>> Basic... is there (still) such a thing?
>>
>> if( $a==1 && $b==2) { // do some cool stuff }
>>
>> If you use a single =, you'll actually set the value and it'll always
>> be true. the double == checks equality without changing the value.
>> Use || for OR.
>>
>> Mike
>
> Finally found a site that describes all the good stuff like that.

???

It's ALL described at www.php.net.

> http://www.elated.com/articles/php-operators/
>
> I saw one bit of code that showed === and I'm reacting like wtf?
> Had not seen that one before. Now I have a resource for that stuff.

You've had one all along: www.php.net, as people have been telling you for
more than a year.
[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 04:56:57 GMT 2024

Total time taken to generate the page: 0.03794 seconds