Compare strings in PHP
Just read a comment in the PHP documentation and had another PHP madness moment.It seems you have to be really, really careful when comparing strings that include numbers… Command \ PHP Version7.0.0 – 7.1.35.4.4 – 5.6.305.2.1 – 5.4.3var_dump(‘123’ == ‘ 123’);TRUETRUETRUEvar_dump(‘1e3’ == ‘1000’);TRUETRUETRUEvar_dump(‘+74951112233’ == ‘74951112233’);TRUETRUETRUEvar_dump(‘00000020’ == … Read more »