Re: Problem with loose typing
| From: | Jason Wong | Date: | Fri, 17 Dec 2004 16:30:14 +0000 |
| Subject: | Re: Problem with loose typing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204589@lists.php.net to get a copy of this message | ||
On Saturday 18 December 2004 00:02, Chris Boget wrote:
> Is there any way that I can force this not to happen? That the
> while loop resolves as FALSE only when the function actually
> returns a (boolean) FALSE value?
Make the test more explicit:
while (TRUE === ($bob = test())) { ... }
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
It is very difficult to prophesy, especially when it pertains to the future.
*/