News Feed
Sections




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

DevShed:
More Examples of Creating Command Objects with PHP 5
December 19, 2006 @ 12:36:00

DevShed is moving right along with their series concerning Command objects with this new article showing even more examples of how they're used.

Turning special attention to this second article of the series, I'll develop a few more hands-on examples concerning the pattern in question, thus you can reaffirm the concepts learned in the preceding installment.

They start off by building an array command class to act as a base for the rest of the tutorial. They make two more command classes to point to the commands to be issued (lowercase or reverse a string). Next up is the commanded class to handle the actions themselves. Finally, they plug it all together and show a complete example, including usage.

0 comments voice your opinion now!
command object php5 example tutorial string manipulate command object php5 example tutorial string manipulate


blog comments powered by Disqus

Similar Posts

DevShed: Performing Basic Tasks with MySQL 4.1 and Above, using mysqli with PHP 5

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 7)

PHP Magazine: Two New Polls - CMS Features & PHP5 Choices

Padraic Brady's Blog: PHPMutagen: Mutation Testing for PHP5

Tiffany Brown's Blog: Simple pagination for arrays with PHP 5


Community Events





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


testing symfony2 laravel series interview developer opinion configure threedevsandamaybe community podcast introduction install code framework list refactor language unittest release

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