note 53202 deleted from language.types.type-juggling by tularis

From: Date: Tue, 05 Jun 2007 09:47:40 +0000
Subject: note 53202 deleted from language.types.type-juggling by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127224@lists.php.net to get a copy of this message
Note Submitter: ---- It appears in PHP 5.0.0, that casting will convert the variable to the specified type, not return a copy of the variable converted to that type. ie: $str = "foo"; $int = (int) $str; echo "str: $str, int: $int"; // prints out "0, 0" instead of "foo, 0". How it works with classes, I don't know.

« previous php.notes (#127224) next »