News Feed
Sections




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

DevShed:
Building a Data Validation System with the Prototype Pattern with PHP 5
May 23, 2007 @ 15:43:00

DevShed has posted the last part of their latest series, a look at using the Prototype pattern in a PHP5 application, Building a Data Validation System with the Prototype Pattern with PHP 5.

Taking into account that this pattern can be helpful in situations where a prototype object is required, along with other clones of it, in this final installment of the series I'm going to demonstrate how to use it to build a simple application for checking the validity of incoming data.

They create a simple validation system with the pattern to check and see if the inputted data is either alpha only or alpha-numeric. On top of this, they create some additional classes to check the data for things like being a valid email address or if the value is made up of all numbers.

0 comments voice your opinion now!
php5 data validation class prototype designpattern tutorial php5 data validation class prototype designpattern tutorial


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Making Zend Server Available Via SSL Only

Till Klampaeckel's Blog: Yahoo: oauth_problem=consumer_key_rejected

Eran Galperin's Blog: On the pitfalls of date validation with the Zend Framework

Stefan Esser's Blog: CORE GRASP - PHP Tainted Mode

Zend Developer Zone: Accepting Credit Card Payments with OXID eShop CE and AlertPay


Community Events

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


api podcast opinion project interview example laravel part2 introduction symfony language list community php7 framework yii2 application composer conference series

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