note 66050 added to language.types.type-juggling
| From: | jsingh dot oberoi at gmail dot com | Date: | Sat, 13 May 2006 10:23:36 +0000 |
| Subject: | note 66050 added to language.types.type-juggling | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111210@lists.php.net to get a copy of this message | ||
Reply to note dated 25-May-2005 05:35 :
In PHP 5.1.4, cast only affects the destination type and not the source type.
So,
<?php
$a = "abc";
$bb = (int)$a;
echo $a;
?>
gives as output:
abc
----
Server IP: 203.199.124.111
Probable Submitter: 59.178.29.44
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/language.types.type-juggling.php
Edit -- http://master.php.net/note/edit/66050
Del: integrated -- http://master.php.net/note/delete/66050/integrated
Del: useless -- http://master.php.net/note/delete/66050/useless
Del: bad code -- http://master.php.net/note/delete/66050/bad+code
Del: spam -- http://master.php.net/note/delete/66050/spam
Del: non-english -- http://master.php.net/note/delete/66050/non-english
Del: in docs -- http://master.php.net/note/delete/66050/in+docs
Del: other reasons-- http://master.php.net/note/delete/66050
Reject -- http://master.php.net/note/reject/66050
Search -- http://master.php.net/manage/user-notes.php