note 84320 added to language.types.string
| From: | nullhility at gmail dot com | Date: | Wed, 09 Jul 2008 11:38:28 +0000 |
| Subject: | note 84320 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141294@lists.php.net to get a copy of this message | ||
"String conversion is automatically done in the scope of an expression where a string is
needed. This happens when using the echo() or print() functions, or when a variable is compared to a
string."
ord(), var_dump() and strlen() do not type cast to (string).
I get your point, but the "strange behavior" is not strange at all, it's how PHP
handles the string type in *context*.
----
Server IP: 117.104.160.194
Probable Submitter: 124.186.94.4
----
Manual Page -- http://www.php.net/manual/en/language.types.string.php
Edit -- https://master.php.net/note/edit/84320
Del: integrated -- https://master.php.net/note/delete/84320/integrated
Del: useless -- https://master.php.net/note/delete/84320/useless
Del: bad code -- https://master.php.net/note/delete/84320/bad+code
Del: spam -- https://master.php.net/note/delete/84320/spam
Del: non-english -- https://master.php.net/note/delete/84320/non-english
Del: in docs -- https://master.php.net/note/delete/84320/in+docs
Del: other reasons-- https://master.php.net/note/delete/84320
Reject -- https://master.php.net/note/reject/84320
Search -- https://master.php.net/manage/user-notes.php