PHP - Variables and Data Types
Examine the following PHP code snippet:
What is the issue with this code?
$var = null
if ($var === null) {
echo 'Null value';
}
What is the issue with this code?
$var = null
if ($var === null) {
echo 'Null value';
}
$var = null lacks a semicolon at the end, causing a syntax error.=== is valid, echo syntax is correct, and $var is declared.$var = null -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions