News Feed
Jobs Feed
Sections




News Archive
Tibo Beijen's Blog:
Explicit PHP6?
June 12, 2009 @ 10:27:26

Tibo Beijen takes his own look at some of what PHP6 will have to offer and talks a bit about how it would have helped him in a current project:

I'm currently working on [a project] where I've been experimenting with 'domain objects' having 'scalar' or 'value' objects as properties (more on that later).

The talks specifically about two of the upcoming features - type hinting and the __cast magic method that allows you to correctly cast a variable into a different type. He illustrates with some code that handles and manipulates user data and handles exceptions on an incorrect type cast.

0 comments voice your opinion now!
typehint cast php6


blog comments powered by Disqus

Similar Posts

Stubbles Blog: My wishlist for PHP 6, pt1: The 'object' type hint

Marcus Whitney's Blog: Stop the Zend bashing...it's old.

Chris Hartjes' Blog: Where Are The Good Development Tools For PHP?

O'Reilly: More PHP Adoption Statistics

SitePoint PHP Blog: PHP6 gets a COMEFROM statement


Community Events











Don't see your event here?
Let us know!


phpunit release series testing unittest community development interview application tool language zendframework2 introduction podcast opinion functional framework conference example code

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework