lotrfan Posted October 13, 2007 Share Posted October 13, 2007 if ($var == 8 || 10 || 12) { echo "This is the value I want"; myfunction($var); } How am I coding this simple statement wrong? The PHP manual wasn't much help here. Quote Link to comment https://forums.phpfreaks.com/topic/73102-solved-logical-operators-or-problem/ Share on other sites More sharing options...
pocobueno1388 Posted October 13, 2007 Share Posted October 13, 2007 It would be if ($var == 8 || $var == 10 || $var == 12) Quote Link to comment https://forums.phpfreaks.com/topic/73102-solved-logical-operators-or-problem/#findComment-368681 Share on other sites More sharing options...
lotrfan Posted October 13, 2007 Author Share Posted October 13, 2007 oh.... Duh. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/73102-solved-logical-operators-or-problem/#findComment-368687 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.