Jump to content

[SOLVED] while loop, || condition


PC Nerd

Recommended Posts

hi guys

 

simple question:

 

if i have a while loop, can i use an || expression, and if both conditions or it true or fals ( as in its not or its and)

 

eg

 

if($a == "abc" || $b == "bcd") {

 

}

 

 

if both $a and $b were equal to what their teested against, would it still return true?

 

 

thankx for your help

 

Link to comment
https://forums.phpfreaks.com/topic/44734-solved-while-loop-condition/
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.