Difference between numeric and string value in PHP

Posted by Industrial on Stack Overflow See other posts from Stack Overflow or by Industrial
Published on 2010-05-10T16:48:25Z Indexed on 2010/05/10 16:54 UTC
Read the original article Hit count: 310

Filed under:
|
|
|

Hi everyone,

I am getting a difference when comparing two string which are 0 and '0' in PHP. Can I do anything to make them be compared equally in an if action?

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about numeric