note 99824 added to tutorial.useful
| From: | romulo8000 at gmail dot com | Date: | Wed, 08 Sep 2010 23:18:08 +0000 |
| Subject: | note 99824 added to tutorial.useful | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172394@lists.php.net to get a copy of this message | ||
The follow if statement is more easily to understand.
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
echo 'Usando MSIE';
}
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox')) {
echo 'Usando FireFox';
}
strpos(); returns TRUE if found the string of second parameter in first array parameter or FALSE if
it does not. That's just it.
----
Server IP: 187.16.23.128
Probable Submitter: 200.174.110.66
----
Manual Page -- http://www.php.net/manual/en/tutorial.useful.php
Edit -- https://master.php.net/note/edit/99824
Del: integrated -- https://master.php.net/note/delete/99824/integrated
Del: useless -- https://master.php.net/note/delete/99824/useless
Del: bad code -- https://master.php.net/note/delete/99824/bad+code
Del: spam -- https://master.php.net/note/delete/99824/spam
Del: non-english -- https://master.php.net/note/delete/99824/non-english
Del: in docs -- https://master.php.net/note/delete/99824/in+docs
Del: other reasons-- https://master.php.net/note/delete/99824
Reject -- https://master.php.net/note/reject/99824
Search -- https://master.php.net/manage/user-notes.php