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 == ope
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-genera
2 matches
Mail list logo