String is being shown as equal to a number
问题 I'm having a strange problem in some of my php. What seems to be happening is that 0 is being shown as equal to the string "done". Here's what's happening: if(!isset($pointer)){ $pointer = 0; } error_log($pointer); //in this instance, I haven't set a pointer, returns 0 if($pointer == "done"){ die(); } For some reason, the second if statement is triggering and killing the script. I can't figure out why, when $pointer is equal to 0, it is apparently also equal to "done". Is this something super