note 100410 added to function.is-null

From: Date: Thu, 14 Oct 2010 05:03:35 +0000
Subject: note 100410 added to function.is-null
Groups: php.notes 
Request: Send a blank email to php-notes+get-173209@lists.php.net to get a copy of this message
I ran into issues with is_null() behaving counter-intuitively when I was checking user-input via forms... so I spent a few hours testing is_null() and its siblings isset(), empty(), and strlen() and put the results in a large table on my site to clarify their behavior and highlighted the areas that might get a programmer in trouble. Hope you find this useful. http://www.davidbergan.com/Summa/Php Kind regards, David ---- Server IP: 64.71.164.2 Probable Submitter: 96.2.101.219 ---- Manual Page -- http://www.php.net/manual/en/function.is-null.php Edit -- https://master.php.net/note/edit/100410 Del: integrated -- https://master.php.net/note/delete/100410/integrated Del: useless -- https://master.php.net/note/delete/100410/useless Del: bad code -- https://master.php.net/note/delete/100410/bad+code Del: spam -- https://master.php.net/note/delete/100410/spam Del: non-english -- https://master.php.net/note/delete/100410/non-english Del: in docs -- https://master.php.net/note/delete/100410/in+docs Del: other reasons-- https://master.php.net/note/delete/100410 Reject -- https://master.php.net/note/reject/100410 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173209) next »