Re: [PHP4BETA] propose for bool -> string conversion:
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] propose for bool -> string conversion: | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1800@lists.php.net to get a copy of this message | ||
> Semantically nothing changed, both "0" and "" are false. I don't feel
> strongly about this, but basically, anybody relying on false being "" and
> not "0" or 0, is writing bogus code.
Unfortunately the only way to determine whether some functions return a
valid result or not is to check whether they return 0 or false. strpos()
being one of them.
-Rasmus