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')) { } 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. 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. Link to comment https://forums.phpfreaks.com/topic/242698-easier-and-faster/#findComment-1246528 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.