News Feed
Sections




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

DevShed:
Enforcing Object Types in PHP - Using the Type Hinting Feature in PHP 5
March 02, 2006 @ 06:42:19

DevShed has posted the last article in their "Enforcing Object Types in PHP" series today - "Using the Type Hinting Feature in PHP5".

[Returning] to the subject of this last tutorial, I'll introduce another method for enforcing object types in PHP 5: the "Type Hinting" feature. It can also be used in conjunction with the "instanceof" operator that you learned about before, in order to develop PHP applications that implement thorough routines for filtering unwanted objects. Generally speaking, when you finish reading this article, you should be armed with a few more methods for forcing object types in PHP, in this way expanding your overall knowledge of object-oriented programming.

They start with an introduction to type hinting and some basic examples of its use. From there, they build up a relevant example with the help of their (X)HTML widget class they've used throughout the series.

2 comments voice your opinion now!
enforcing object types using type hinting php5 enforcing object types using type hinting php5


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Installing PHP4 and PHP5 Concurrently on One WinXP Computer

PHPClasses.org: PHP Object-Relational Mapping: ORM or ROM?

Ilia Alshanetsky's Blog: PHP 5.2.0 RC4 Released!

David Sklar\'s Blog: Two New O\'Reilly PHP Translations

Kae Verens' Blog: review: Object-Oriented Programming in PHP5


Community Events

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


interview install podcast performance community series php7 opinion library voicesoftheelephpant application release api introduction conference configure laravel framework example symfony2

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