note 43555 added to tutorial.useful

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

« previous php.notes (#71650) next »