note 126856 added to tutorial.useful

From: Date: Wed, 16 Feb 2022 11:29:16 +0000
Subject: note 126856 added to tutorial.useful
Groups: php.notes 
Request: Send a blank email to php-notes+get-217621@lists.php.net to get a copy of this message
Why use if a negative if? You could write the following: if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') === TRUE) { That would make a thousand times more sense in my world. Why use the negative and False? I really don't get it ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.135 (proxied: 95.237.104.55) ---- Manual Page -- https://php.net/manual/en/tutorial.useful.php Edit -- https://main.php.net/note/edit/126856 Del: integrated -- https://main.php.net/note/delete/126856/integrated Del: useless -- https://main.php.net/note/delete/126856/useless Del: bad code -- https://main.php.net/note/delete/126856/bad+code Del: spam -- https://main.php.net/note/delete/126856/spam Del: non-english -- https://main.php.net/note/delete/126856/non-english Del: in docs -- https://main.php.net/note/delete/126856/in+docs Del: other reasons-- https://main.php.net/note/delete/126856 Reject -- https://main.php.net/note/reject/126856 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217621) next »