note 85540 deleted from language.operators.comparison by danbrown

From: Date: Thu, 18 Jun 2009 14:03:51 +0000
Subject: note 85540 deleted from language.operators.comparison by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157061@lists.php.net to get a copy of this message
Note Submitter: jescribens at urbangolem dot com ---- 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

« previous php.notes (#157061) next »