note 117994 added to language.types.type-juggling
| From: | berniev | Date: | Tue, 15 Sep 2015 23:23:43 +0000 |
| Subject: | note 117994 added to language.types.type-juggling | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203789@lists.php.net to get a copy of this message | ||
May be expected, but not stated ..
Casting to the existing (same) type has no effect.
$t = 'abc'; // string 'abc'
$u=(array) $t; // array 0 => string 'abc' <-- now an array
$v=(array) $u; // array 0 => string 'abc' <-- unchanged
----
Server IP: 72.52.91.14
Probable Submitter: 120.146.189.39
----
Manual Page -- http://php.net/manual/en/language.types.type-juggling.php
Edit -- https://master.php.net/note/edit/117994
Del: integrated -- https://master.php.net/note/delete/117994/integrated
Del: useless -- https://master.php.net/note/delete/117994/useless
Del: bad code -- https://master.php.net/note/delete/117994/bad+code
Del: spam -- https://master.php.net/note/delete/117994/spam
Del: non-english -- https://master.php.net/note/delete/117994/non-english
Del: in docs -- https://master.php.net/note/delete/117994/in+docs
Del: other reasons-- https://master.php.net/note/delete/117994
Reject -- https://master.php.net/note/reject/117994
Search -- https://master.php.net/manage/user-notes.php