Re: filter function vs regular expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux