note 99031 added to function.is-string
| From: | Anonymous at osu1 dot php dot net | Date: | Fri, 23 Jul 2010 11:13:55 +0000 |
| Subject: | note 99031 added to function.is-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171066@lists.php.net to get a copy of this message | ||
son9ne, you are comparing $var with the output of "is_string" function
it returns "false" because empty string is not equal to "true"
function works fine with empty strings, so check out "switch" syntax
----
Server IP: 195.54.192.44
Probable Submitter: 127.0.0.1
----
Manual Page -- http://www.php.net/manual/en/function.is-string.php
Edit -- https://master.php.net/note/edit/99031
Del: integrated -- https://master.php.net/note/delete/99031/integrated
Del: useless -- https://master.php.net/note/delete/99031/useless
Del: bad code -- https://master.php.net/note/delete/99031/bad+code
Del: spam -- https://master.php.net/note/delete/99031/spam
Del: non-english -- https://master.php.net/note/delete/99031/non-english
Del: in docs -- https://master.php.net/note/delete/99031/in+docs
Del: other reasons-- https://master.php.net/note/delete/99031
Reject -- https://master.php.net/note/reject/99031
Search -- https://master.php.net/manage/user-notes.php