note 100411 added to function.strlen

From: Date: Thu, 14 Oct 2010 05:04:17 +0000
Subject: note 100411 added to function.strlen
Groups: php.notes 
Request: Send a blank email to php-notes+get-173210@lists.php.net to get a copy of this message
I ran into issues with strlen() behaving counter-intuitively when I was checking user-input via forms... so I spent a few hours testing strlen() and its siblings isset(), is_null(), and empty() 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.strlen.php Edit -- https://master.php.net/note/edit/100411 Del: integrated -- https://master.php.net/note/delete/100411/integrated Del: useless -- https://master.php.net/note/delete/100411/useless Del: bad code -- https://master.php.net/note/delete/100411/bad+code Del: spam -- https://master.php.net/note/delete/100411/spam Del: non-english -- https://master.php.net/note/delete/100411/non-english Del: in docs -- https://master.php.net/note/delete/100411/in+docs Del: other reasons-- https://master.php.net/note/delete/100411 Reject -- https://master.php.net/note/reject/100411 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173210) next »