note 6614 deleted from Type Juggling by jmoore
| From: | jmoore@php.net | Date: | Thu, 15 Feb 2001 18:54:07 +0000 |
| Subject: | note 6614 deleted from Type Juggling by jmoore | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11119@lists.php.net to get a copy of this message | ||
In PHP3 the following:<br>
<pre>
$var = "";
$var++;
</pre>
Would result in $var being 1 after the addition. A blank string ("") would by casted to
an integer and automatically become 0, I believe.<br>
In PHP4, the above doesn't work, had an instance where I was initalizing an variable like that.