note 45872 added to tutorial.useful
| From: | lovingrainbow at indiatimes dot com | Date: | Wed, 22 Sep 2004 05:56:04 +0000 |
| Subject: | note 45872 added to tutorial.useful | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77140@lists.php.net to get a copy of this message | ||
<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
?>
<h3>strpos() must have returned non-false</h3>
<p>You are using Internet Explorer</p>
<?php
} else {
?>
<h3>strpos() must have returned false</h3>
<p>You are not using Internet Explorer</p>
<?php
}
?>
As not understood by some...
This particular code will give the following output as under:
strpos() must have returned non-false
You are using Internet Explorer
strpos() must have returned false
You are not using Internet Explorer
----
Manual Page -- http://www.php.net/manual/en/tutorial.useful.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45872
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45872&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45872&report=yes
Search -- http://master.php.net/manage/user-notes.php