I\'m really confused as to why this operation works. Can someone explain it?
$test1 = \"d85d1d81b25614a3504a3d5601a9cb2e\";
$test2 = \"3581169b064f71be1630b
$test1 = "d85d1d81b25614a3504a3d5601a9cb2e";
this string starts with a "d", which is not valid number, the var will resolve to 0 and your test#1 will pass.
$test2 = "3581169b064f71be1630b321d3ca318f";
this string starts with 3581169 which is a valid number, so the var will resolve to that value which is not equal to 0. So your test#2 will not pass.