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 More Capable Validation Helper Class
August 24, 2009 @ 13:16:47

DevShed continues their series on helpers classes in PHP applications with the sixth part of the series focusing on updates to their Validation class to add additional format checks.

It would be really useful to add more methods to it to validate other things, like email and IP addresses, to mention just two examples. Thus, in the next few lines I'm going to extend the abilities of this helper class so it can be used to perform the validation processes mentioned above.

They include the code that lets you validate URLs, IP addresses and email addresses for correctness via PHP's filter_var function.

0 comments voice your opinion now!
validation helper class tutorial


blog comments powered by Disqus

Similar Posts

Elizabeth Smith\'s Blog: String Class (Kal_String)

NetTuts.com: Learn to Create Interactive Drill-Down Dashboards with PHP and FusionCharts

Gonzalo Ayuso: Building a Silex application from one Behat/Gherkin feature file

Query7.com: Developing A Blog With CakePHP

Hakre's Blog: Iterating over Multiple Iterators at Once


Community Events

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


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

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