note 97352 added to function.is-string

From: Date: Thu, 15 Apr 2010 15:34:12 +0000
Subject: note 97352 added to function.is-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-168283@lists.php.net to get a copy of this message
What son9ne dot junk at gmail dot com said in his note is not true. It is a result of a wrong usage of a switch statement: <?php switch ($var) { case is_string($var): ... ?> is the same as <?php if ($var == is_string($var)) ?> and if $var is an empty string <?php if ('' == true) ?> ---- Server IP: 69.147.83.197 Probable Submitter: 91.115.28.49 ---- Manual Page -- http://www.php.net/manual/en/function.is-string.php Edit -- https://master.php.net/note/edit/97352 Del: integrated -- https://master.php.net/note/delete/97352/integrated Del: useless -- https://master.php.net/note/delete/97352/useless Del: bad code -- https://master.php.net/note/delete/97352/bad+code Del: spam -- https://master.php.net/note/delete/97352/spam Del: non-english -- https://master.php.net/note/delete/97352/non-english Del: in docs -- https://master.php.net/note/delete/97352/in+docs Del: other reasons-- https://master.php.net/note/delete/97352 Reject -- https://master.php.net/note/reject/97352 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168283) next »