Re: string vs number

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

 



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

[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