note 100704 added to function.is-string

From: Date: Mon, 01 Nov 2010 14:07:36 +0000
Subject: note 100704 added to function.is-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-173648@lists.php.net to get a copy of this message
re: son9ne dot junk at gmail dot com >When checking is_string() on an empty string, it fails. no it doesn't, your code is wrong: it should be switch (TRUE) not switch ($var); and of course it then works as expected. ---- Server IP: 89.31.146.176 Probable Submitter: 77.201.166.58 ---- Manual Page -- http://www.php.net/manual/en/function.is-string.php Edit -- https://master.php.net/note/edit/100704 Del: integrated -- https://master.php.net/note/delete/100704/integrated Del: useless -- https://master.php.net/note/delete/100704/useless Del: bad code -- https://master.php.net/note/delete/100704/bad+code Del: spam -- https://master.php.net/note/delete/100704/spam Del: non-english -- https://master.php.net/note/delete/100704/non-english Del: in docs -- https://master.php.net/note/delete/100704/in+docs Del: other reasons-- https://master.php.net/note/delete/100704 Reject -- https://master.php.net/note/reject/100704 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173648) next »