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. 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) 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. 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
Archived
This topic is now archived and is closed to further replies.