note 43554 deleted from tutorial.useful by nlopess

From: Date: Fri, 25 Jun 2004 09:32:14 +0000
Subject: note 43554 deleted from tutorial.useful by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71659@lists.php.net to get a copy of this message
Note Submitter: Andres P ---- I don't like that comparison between output of strpos and FALSE. strpos already returns TRUE or FALSE!!! This seems to be better for me: <?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { echo 'You are using Internet Explorer.<br />'; } ?>

« previous php.notes (#71659) next »