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 Quote Link to comment 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'))) Quote Link to comment 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 Quote Link to comment 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.