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

From: Date: Thu, 03 Jan 2002 05:46:39 +0000
Subject: Re[2]: [PHP] If Statement with more than one conclusion
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79290@lists.php.net to get a copy of this message
Hello Martin, Thanks that work perfect Wednesday, January 02, 2002, 9:31:36 PM, you wrote: MT> something like: MT> If(in_array($ext, array("com", "net", "org", MT> "info")){ MT> //Then do this MT> } MT> If(in_array($ext, "com.uk", "me.uk", "org.uk")){ MT> //Then do this MT> } MT> maybe?? MT> -----Original Message----- MT> From: rdkurth@starband.net [mailto:rdkurth@starband.net] MT> Sent: Thursday, January 03, 2002 4:22 PM MT> To: php-general MT> Subject: [PHP] If Statement with more than one conclusion MT> How can I do an if statement with more than one conclusions MT> Something like this I know this is not correct just an example of what MT> I what to do MT> If($ext=="com"or"net"or"org"or"info"){ MT> Then do this MT> } MT> If($ext=="com.uk"or"me.uk"or"org.uk){ MT> Then do this MT> } -- Best regards, rdkurth mailto:rdkurth@starband.net

« previous php.general (#79290) next »