AW: [PHP-DEV] Object Type Casting

From: Date: Wed, 24 Apr 2013 16:43:52 +0000
Subject: AW: [PHP-DEV] Object Type Casting
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-67132@lists.php.net to get a copy of this message
I suppose your cast is a conversion. Otherwise it is not needed at all because PHP has no types. -----Ursprüngliche Nachricht----- Von: Raymond Irving [mailto:xwisdom@gmail.com] Gesendet: Mittwoch, 24. April 2013 17:40 An: PHP Internals Betreff: [PHP-DEV] Object Type Casting Hello, Are there any plans to add object type casting support in PHP? For example: $circle = (Circle) ShapeFactory::createShape('circle'); $circle->radius = 10; echo $circle->getArea(); It would be great if this feature could be added to 5.5 :) __ Raymond Irving

« previous php.internals (#67132) next »