note 106137 added to tutorial.useful

From: Date: Thu, 13 Oct 2011 13:57:10 +0000
Subject: note 106137 added to tutorial.useful
Groups: php.notes 
Request: Send a blank email to php-notes+get-183849@lists.php.net to get a copy of this message
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) I changed "MSIE" to "Mozilla" and ran it in Firefox, the result was not what I expected. Finally, I find that strpos('Mozilla xxxx', 'Mozilla') returns 0 which equals to FALSE. I don't think your example is good for freshman. ---- Server IP: 69.147.83.197 Probable Submitter: 122.235.245.157 ---- Manual Page -- http://www.php.net/manual/en/tutorial.useful.php Edit -- https://master.php.net/note/edit/106137 Del: integrated -- https://master.php.net/note/delete/106137/integrated Del: useless -- https://master.php.net/note/delete/106137/useless Del: bad code -- https://master.php.net/note/delete/106137/bad+code Del: spam -- https://master.php.net/note/delete/106137/spam Del: non-english -- https://master.php.net/note/delete/106137/non-english Del: in docs -- https://master.php.net/note/delete/106137/in+docs Del: other reasons-- https://master.php.net/note/delete/106137 Reject -- https://master.php.net/note/reject/106137 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183849) next »