News Feed
Sections




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

DevShed:
Creating a Validation Helper Class
August 17, 2009 @ 15:10:31

DevShed has continued their series looking at helpers in PHP5 applications with this new tutorial about creating a simple validation helper to ensure inputted data is as it should be.

In this fifth part of the series I plan to build a class that will be responsible for validating input data, either supplied by users or from a different source. In this specific project, this validation helper will make use of the PHP filter extension to perform the pertinent checking processes, but it can be easily adapted to use custom methods as well.

Their example code sets up two methods for validating integers and floats against the values given. It uses the filter extension to run the check.

0 comments voice your opinion now!
helper class tutorial validate


blog comments powered by Disqus

Similar Posts

NetTuts.com: Refactoring Legacy Code - Part 10: Dissecting Long Methods with Extractions

DZone.com: GladiusDB and Firebird: Databases for Your PHP Apps

Script-Tutorials.com: How to Use APC Caching with PHP

Cory Fowler: Enabling PHP 5.4 in Windows Azure Web Sites

The Shadow Fox Network: Create Dynamic URLs With Mod_Rewrite and PHP Functions


Community Events





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


series laravel bugfix list framework interview deployment voicesoftheelephpant api package tips language install symfony podcast library introduction community opinion release

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