note 43555 deleted from tutorial.useful by nlopess
| From: | nlopess@php.net | Date: | Fri, 25 Jun 2004 09:32:26 +0000 |
| Subject: | note 43555 deleted from tutorial.useful by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-71660@lists.php.net to get a copy of this message | ||
Note Submitter: Andres
----
Forgot my comment, strpos could return a "false-FALSE" value. But comparing with
"!FALSE" looks awesome. :-)
This one looks better:
<?php
if ( is_int(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) ) {
echo 'You are using Internet Explorer.<br />';
}
?>