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: [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:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to