<?php echo "Int to bool: \n"; var_dump(10 == true); // TRUE: Here we have an integer compared to a boolean true echo "\nInt to bool strictly: \n"; var_dump(10 === true); // FALSE: Here we have an integer STRICTLY compared to a boolean true echo "\n\nInt to int striclty: \n"; var_dump(10 === 10); // TRUE: Strict comparison of same value
You have javascript disabled. You will not be able to edit any code.