note 100704 deleted from function.is-string by danbrown
| From: | danbrown@php.net | Date: | Mon, 01 Nov 2010 14:08:41 +0000 |
| Subject: | note 100704 deleted from function.is-string by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173649@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
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.