Re: Comparrison
| From: | Edward van Bilderbeek - Bean IT | Date: | Wed, 27 Mar 2002 12:38:38 +0000 |
| Subject: | Re: Comparrison | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90355@lists.php.net to get a copy of this message | ||
use regular expressions:
if (ereg("MSIE 5.5", $HTTP_USER_AGENT)) {
}
Greets,
Edward
----- Original Message -----
From: "Ron" <allenr@fwd.areur.army.mil>
To: <php-general@lists.php.net>
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
>