PHP - Variables and Data Types
What is the output of the following PHP code?
$a = '10 apples';
$b = 10;
var_dump($a == $b);
$a = '10 apples';
$b = 10;
var_dump($a == $b);
== triggers type juggling, so PHP converts the string to a number.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions