Thursday, July 25, 2013

Will comparison of string and integer work in PHP?

Yes you can compare string and integer in PHP  as  internally PHP will cast everything to the integer type, so numbers 100 and 100 will be compared.