Re: string vs number
| From: | Eric Butera | Date: | Tue, 05 Feb 2008 19:18:51 +0000 |
| Subject: | Re: string vs number | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268741@lists.php.net to get a copy of this message | ||
On Feb 5, 2008 1:48 PM, Nathan Nobbe <quickshiftin@gmail.com> wrote:
> 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
>
Yep, I use them all the time. I just meant that I wasn't sure this is
what was going to get the OP fixed.