note 43554 added to tutorial.useful

From: Date: Fri, 25 Jun 2004 08:23:53 +0000
Subject: note 43554 added to tutorial.useful
Groups: php.notes 
Request: Send a blank email to php-notes+get-71649@lists.php.net to get a copy of this message
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 />'; } ?> ---- Manual Page -- http://www.php.net/manual/en/tutorial.useful.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43554 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43554&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43554&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71649) next »