Re: string vs number
| From: | Nathan Nobbe | Date: | Tue, 05 Feb 2008 18:48:24 +0000 |
| Subject: | Re: string vs number | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268737@lists.php.net to get a copy of this message | ||
On Feb 5, 2008 1:43 PM, Eric Butera <eric.butera@gmail.com> wrote:
> I was thinking about saying that, but php is loosely typed, so 54 ==
> '54'.
i only mentioned the type cast because it was asked about; actually, there
are rare times in php when type casts are called for, such as pulling a
value
from a SimpleXMLElement. but that is neither here nor there..
> I'm thinking something else is wrong here.
>
ya, like
$rowB['54'] != 'Y'; // ;)
-nathan