Re: filter function vs regular expression

From: Date: Sat, 20 Dec 2008 17:50:16 +0000
Subject: Re: filter function vs regular expression
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284888@lists.php.net to get a copy of this message
On Sat, 2008-12-20 at 16:22 +0100, Alain Roger wrote: > Hi, > > i'm reading a book about PHP and i was wondering why regular expressions are > so often used to check format of variables or emails while the function > filter exists since version 5.2. > What are the plus of regular expression while checking variable format ? > thx. Because then your app would lose all compatibility with versions below 5.2. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#284888) next »