note 56695 added to tutorial.useful
| From: | corz at ampsig dot com | Date: | Mon, 12 Sep 2005 19:24:47 +0000 |
| Subject: | note 56695 added to tutorial.useful | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95067@lists.php.net to get a copy of this message | ||
this sort of thing always ends up looking like spagetti. for me it's a joy to read code that
but one set of php tags..
<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
echo '
<h3>strpos() must have returned non-false</h3>
<p>You are using Internet Explorer</p>';
} else {
echo'
<h3>strpos() must have returned false</h3>
<p>You are not using Internet Explorer</p>';
}
?>
ahh.. much better! *grin*
;o)
(or
----
Manual Page -- http://www.php.net/manual/en/tutorial.useful.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56695
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56695&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56695&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56695&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56695&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56695&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56695&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56695&report=yes
Search -- http://master.php.net/manage/user-notes.php