use regular expressions: 

if (ereg("MSIE 5.5", $HTTP_USER_AGENT)) {
}

Greets,

Edward

----- Original Message ----- 
From: "Ron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 27, 2002 1:46 PM
Subject: [PHP] Comparrison


> How would I compare to variables where I would want one variable to equal
> only part or some of the other variable?
> Here is the code
> 
> <?
> if ($HTTP_USER_AGENT !== "%MSIE 5.5%") {
>  print "You must upgrade your browser";
> } else {
>  exit;
> }
> 
> ?>
> 
> Any suggestions
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to