Re: filter function vs regular expression

From: Date: Sat, 20 Dec 2008 16:06:46 +0000
Subject: Re: filter function vs regular expression
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-284885@lists.php.net to get a copy of this message
> 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. That's not so long. > What are the plus of regular expression while checking variable format ? They' more versatile. Far more in the case of PCRE. -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated December 5th)

« previous php.general (#284885) next »