unixbro Posted March 6, 2008 Share Posted March 6, 2008 if(($var=1)or($var=2)){do something}else{do something else} does this work? If so is it the right syntax ? Cannot find much documentation on this. Link to comment https://forums.phpfreaks.com/topic/94728-if-statement-where-1-of-2-variables-are-true/ Share on other sites More sharing options...
revraz Posted March 6, 2008 Share Posted March 6, 2008 Yes, but use == instead of = Link to comment https://forums.phpfreaks.com/topic/94728-if-statement-where-1-of-2-variables-are-true/#findComment-484985 Share on other sites More sharing options...
kenrbnsn Posted March 6, 2008 Share Posted March 6, 2008 There's plenty of documentation in the fine manual Ken Link to comment https://forums.phpfreaks.com/topic/94728-if-statement-where-1-of-2-variables-are-true/#findComment-484999 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.