News Feed
Sections




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

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


blog comments powered by Disqus

Similar Posts

Michael Kimsal's Blog: Grails for PHP Developers Part 5

Alex Netkachov's Blog: 6 PHP coding tips to write less code

David Otton's Blog: Stupid PHP Tricks: Illegal Variable Names

Project: Patchwork-Doc - JSON Formatted Output of PHP variables

PHP-Coding-Practices.com: Composing Methods: Replace Temp With Query


Community Events





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


composer podcast language release conference version laravel series opinion symfony security artisanfiles interview voicesoftheelephpant list introduction tool library community framework

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