News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
David Coallier's Blog:
PHP's Strong typing (SPL_Types) and a bit of ranting about winter...
November 27, 2007 @ 08:42:00

David Coallier has posted a nice overview of what SPL Types are in PHP and a brief example of hos they can be used.

I got karma to SPL_Types and added a new SplFloat() object, a few warning typos and more "flexible" strict modes for different types.

SPL_Types are a way to make PHP strongly typed (no adapting variables) to help make a PHP application "more correct" by forcing the variable's type to stay the same. His example shows the creation of a few variables with these new methods and how they can be used, both correctly and incorrectly.

0 comments voice your opinion now!
spltypes stringly typed variable splfloat spltypes stringly typed variable splfloat



Similar Posts

Stefan Koopmanschap's Blog: Tip: use clearly readable variable names, and constants!

DevShed: Using Subclasses and Accessors with Member Visibility to Protect PHP 5 Class Data

Stefan Koopmanschap's Blog: Tip: use clearly readable variable names, and constants!

Kore Nordmann's Blog: Installing cairo_wrapper on Gentoo

Paul Jones' Blog: New PDO Behavior In PHP 5.2.1


Community Events











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


application database security code zend conference ajax book package PEAR framework release cakephp releases job mysql zendframework PHP5 example developer

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