note 100408 deleted from function.empty by danbrown

From: Date: Thu, 14 Oct 2010 16:30:58 +0000
Subject: note 100408 deleted from function.empty by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173219@lists.php.net to get a copy of this message
Note Submitter: dbergan at gmail dot com ---- I ran into issues with empty() behaving counter-intuitively when I was checking user-input via forms... so I spent a few hours testing empty() and its siblings isset(), is_null(), 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

« previous php.notes (#173219) next »