I have run into a puzzling issue in PHP switch statements
$strKey = 0;
$answer = null;
switch($strKey){
case 'intProductionOrder':
$answer = 'intProductionOrder';
break;
case 'second':
$answer = 'second';
break;
default:
$answer = 'default';
}
echo $answer;
Should return default but it does not, it returns intProductionOrder, why?