RE: [PHP] If Statement with more than one conclusion
| From: | Martin Towell | Date: | Thu, 03 Jan 2002 05:31:36 +0000 |
| Subject: | RE: [PHP] If Statement with more than one conclusion | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79289@lists.php.net to get a copy of this message | ||
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: rdkurth@starband.net [mailto:rdkurth@starband.net]
Sent: Thursday, January 03, 2002 4:22 PM
To: php-general
Subject: [PHP] If Statement with more than one conclusion
How can I do an if statement with more than one conclusions
Something like this I know this is not correct just an example of what
I what to do
If($ext=="com"or"net"or"org"or"info"){
Then do this
}
If($ext=="com.uk"or"me.uk"or"org.uk){
Then do this
}
--
Best regards,
rdkurth mailto:rdkurth@starband.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net