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 #171257 is a reply to message #171244] Wed, 29 December 2010 21:25 Go to previous messageGo to previous message
Beauregard T. Shagnas is currently offline  Beauregard T. Shagnas
Messages: 154
Registered: September 2010
Karma:
Senior Member
richard wrote:

> If my syntax is wrong then so is the coding at php.net.
> From php.net's example:
> <?php
> if ($a > $b)
> echo "a is bigger than b";
> ?>

That is not wrong. Why would you even suggest it?

> Where I may use a single = operator in a post, it is only to show what
> I'm after in the whole.

You can't do that.

> I understand that it is best to use double == operators in real life.

It is not "best" to use == when you want to compare; it is "required."

--
-bts
-Four wheels carry the body; two wheels move the soul
[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: Sat Nov 23 12:35:06 GMT 2024

Total time taken to generate the page: 0.06650 seconds