note 85540 added to language.operators.comparison

From: Date: Thu, 04 Sep 2008 20:16:37 +0000
Subject: note 85540 added to language.operators.comparison
Groups: php.notes 
Request: Send a blank email to php-notes+get-144145@lists.php.net to get a copy of this message
in reply to Hayley Watson: Yes I know that's not a proper way to coding something serious, this was just a dummi example. The points I tried to mark were: 1. NULL is always less than 1. Some people that are starting to code can end up with that kind of validation and if they don't know this could loss some hours. Is just a point of something that is not documented. :) 2. Point out that if $x is null then why asking in a conditional for $x[0][0] doesn't give me a warning of some kind, like "Variable type doesn't support this kind of call". Thats all. Hope it helps. No more examples of code for this :P ---- Server IP: 69.147.83.197 Probable Submitter: 190.81.107.18 ---- Manual Page -- http://www.php.net/manual/en/language.operators.comparison.php Edit -- https://master.php.net/note/edit/85540 Del: integrated -- https://master.php.net/note/delete/85540/integrated Del: useless -- https://master.php.net/note/delete/85540/useless Del: bad code -- https://master.php.net/note/delete/85540/bad+code Del: spam -- https://master.php.net/note/delete/85540/spam Del: non-english -- https://master.php.net/note/delete/85540/non-english Del: in docs -- https://master.php.net/note/delete/85540/in+docs Del: other reasons-- https://master.php.net/note/delete/85540 Reject -- https://master.php.net/note/reject/85540 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144145) next »