Re: [PHP] If Statement with more than one conclusion

2002-01-03 Thread Adam Baratz
Switch statements work well for these situations as well. They might be faster than checking for the item in a list from an array since an array must be created and searched through. General programming tip: your method *definitely* wouldn't work. The or operator has precendence over the ==

RE: [PHP] If Statement with more than one conclusion

2002-01-02 Thread Martin Towell
something like: If(in_array($ext, array(com, net, org, info)){ //Then do this } If(in_array($ext, com.uk, me.uk, org.uk)){ //Then do this } maybe?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:22 PM To: php-general Subject: