You are here: Re: ereg statements « All PHP « IT news, forums, messages
Re: ereg statements

Posted by Janwillem Borleffs on 09/30/06 13:52

Cerebral Believer wrote:
> Is this a good ereg statement?
>

The regular expression on itself is fine, but the error is the '$email_1 or
$email_2' condition, which evaluates to '1' or '' before it's compared. You
need to apply the regular expression for each email address seperately.

Also, it's recommended to use the PCRE library instead of the POSIX-based
ereg* functions. See http://www.php.net/pcre for more information.


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация