News Feed
Sections




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

DevShed:
Working with Regular Expressions with Filters in PHP 5
August 13, 2009 @ 08:10:06

New on DevShed today there's the fifth part of their series looking at validation and filtering in PHP5 applications.

Among the enhancements that were introduced originally in PHP 5, there's one powerful extension that has been all but ignored by many programmers until now, quite possibly because they weren't aware of its existence. [...] In this fifth part of the series, I'm going to discuss the usage of the [filter] extension for checking if the value that has been assigned to a given variable follows a specified regular expression pattern.

They include examples of using the FILTER_VALIDATE_REGEX option for filter_var to check the input against a given format. You'll have to find an introduction to regular expressions someplace else, though - they just assume you know how to work with them.

0 comments voice your opinion now!
tutorial filter extension regularexpression


blog comments powered by Disqus

Similar Posts

Josh Holmes' Blog: Zend SimpleCloud and Azure

DZone.com: TravisCI Intro and PHP Example

IBM developerWorks: Use Ajax with PHP and DB2 9 - Xajax

Pierre-Alain Joye's Blog: Zip 1.8.7, safemode and open_basedir fixes

Flexandair.com: Setting Up Zend_Amf


Community Events

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


framework laravel api opinion interview community laravel5 introduction release symfony podcast series version threedevsandamaybe voicesoftheelephpant unittest language security extension library

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