therealwesfoster Posted April 14, 2009 Share Posted April 14, 2009 How would you do something like this? if ($type == ('a' OR 'b')) Instead of: if ($type == 'a' OR $type == 'b')) Let me know if it's possible Link to comment https://forums.phpfreaks.com/topic/154080-solved-not-sure-what-to-title-this-php-question-though/ Share on other sites More sharing options...
rhodesa Posted April 14, 2009 Share Posted April 14, 2009 the only other way i know how to write it is: if(in_array($type,array('a','b'))) Link to comment https://forums.phpfreaks.com/topic/154080-solved-not-sure-what-to-title-this-php-question-though/#findComment-809934 Share on other sites More sharing options...
therealwesfoster Posted April 14, 2009 Author Share Posted April 14, 2009 What was I thinking? Of course! One of those days Link to comment https://forums.phpfreaks.com/topic/154080-solved-not-sure-what-to-title-this-php-question-though/#findComment-809936 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.