Re: string vs number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 5, 2008 1:48 PM, Nathan Nobbe <quickshiftin@xxxxxxxxx> wrote:
> On Feb 5, 2008 1:43 PM, Eric Butera <eric.butera@xxxxxxxxx> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux