Re: Value (not) being retuned by a function
| From: | MARG | Date: | Sun, 11 Dec 2005 20:19:38 +0000 |
| Subject: | Re: Value (not) being retuned by a function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227317@lists.php.net to get a copy of this message | ||
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