note 66050 deleted from language.types.type-juggling by tularis
| From: | tularis@php.net | Date: | Tue, 05 Jun 2007 09:46:41 +0000 |
| Subject: | note 66050 deleted from language.types.type-juggling by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127223@lists.php.net to get a copy of this message | ||
Note Submitter: jsingh dot oberoi at gmail dot com
----
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