PHP - Type Handling
Find the error in this PHP code snippet:
$x = '10';
if ($x = 10) {
echo 'Match';
} else {
echo 'No Match';
}
$x = '10';
if ($x = 10) {
echo 'Match';
} else {
echo 'No Match';
}
= which assigns 10 to $x instead of comparing.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions