[Phpwm] days_between()
Michael Sheldon
webmaster at mikeasoft.com
Fri Jun 8 09:25:56 BST 2007
On Thu, Jun 07, 2007 at 04:33:15PM +0100, Paul Matthews wrote:
> The point I'm trying to make is that 'x' is a bad error character to pass
> back. Surely the 'null' character would make more sense as that way the view
> (or whatever is calling the function) could deal with the result as it saw
> fit? I personally would even stay clear of using Boolean false because of
> php's dynamic typing. As for the use of the '@' symbol, I've always been led
Just a quick side-node, the use of Booleans within PHP is fairly safe as
long as you make use of the identical operator (===) instead of the equality
operator (==), this ensures that both compared values are of the same type.
Cheers,
Mike.
--
Michael Sheldon
http://www.mikeasoft.com
More information about the Phpwm
mailing list