Jump to content

Assignment Operator


shane18

Recommended Posts

ok well why does if statements and while loops behave like this....

 

while($ROW = $RESULT->fetch_object() && GROUP_SHOW == 1){
  //Code
}

-don't work....

 

 

while(GROUP_SHOW == 1 && $ROW = $RESULT->fetch_object()){
  //Code
}

-works....

 

why does it only work when its the only one or  the last one in the if statement / while loop? can someone explain how this works?

Link to comment
https://forums.phpfreaks.com/topic/191297-assignment-operator/#findComment-1008603
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.