I have this code:
if($key == 'b306') {
$fieldType = 'date';
}
In my PHP Storm debugger, it says that key = 0 (integer). When I leave it as a ==, the code does pass into the if. Only if I change it to === does it skip it, as expected. Why? I thought that the difference between == and === is that === matches type and value, vs == only does value. But this shouldn't allow 0 to be equal to 'b306'.