Jump to content

[SOLVED] Simple Operator Question


mayfair

Recommended Posts

Hi Guys

 

Its late on friday afternoon and im being really stupid. I can't remember if logical operators work both ways?

 

For example if I write the following statement:

 

if  ($var1 == $var2) {

blah blah blah

}

 

Will it also check to see if $var2 is the same as $var1 or would I need to write another statement:

 

if  ($var2 == $var1) {

blah blah blah

}

 

Whatever the answer is, im going to beat myself up after this one  :P

Link to comment
https://forums.phpfreaks.com/topic/169235-solved-simple-operator-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.