News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

Pierre-Alain Joye's Blog: zip 1.8.0 can add empty dir, php6 zip initial unicode support

Zend Developer Zone: 30 Minutes with Chris Hartjes

Greg Beaver's Blog: multiple __HALT_COMPILER(); no longer raises notices PHP 5.2.2+

Lukas Smith's Blog: Its the end of the world as we know it.

Brian Moon's Blog: MySQL native driver for PHP


Community Events





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


voicesoftheelephpant framework api zendserver laravel community interview language symfony introduction series podcast install unittest bugfix library release package opinion deployment

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