Xtremer360 Posted July 25, 2011 Share Posted July 25, 2011 Is there a shorter way of writing this: if (($row['id'] !== '1') || ($row['id'] !== '2') || ($row['id'] !== '3') || ($row['id'] !== '4') || ($row['id'] !== '5') || ($row['id'] !== '6')) { } Quote Link to comment https://forums.phpfreaks.com/topic/242698-easier-and-faster/ Share on other sites More sharing options...
teynon Posted July 25, 2011 Share Posted July 25, 2011 if ($row['id'] > 6)[/code] By the way, by your logic, that wil always evaluate true. Quote Link to comment https://forums.phpfreaks.com/topic/242698-easier-and-faster/#findComment-1246526 Share on other sites More sharing options...
Xtremer360 Posted July 25, 2011 Author Share Posted July 25, 2011 Wow I forgot the obvious. Such an idiot. Thank you. Damn migraine. Quote Link to comment https://forums.phpfreaks.com/topic/242698-easier-and-faster/#findComment-1246528 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.