You are here: Re: [PHP] Value (not) being retuned by a function « PHP « IT news, forums, messages
Re: [PHP] Value (not) being retuned by a function

Posted by MARG on 12/11/05 22:19

Hi Robert,

> I would wager because there's a ! operator preceding the ereg() call.
> Also you have very dirty code, your isEmailOk() function doesn't return
> a value in the case that the if expression fails, it assumes PHP will
> return something useful (PHP returns null, but relying on that is asking
> for trouble, and I doubt you knew so in the first place).
>
> Cheers,
> Rob.
Yes, i knew that.
The code was like ot was for the sake of simplicity.

Warm Regards,
MARG

 

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

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