Source Code:
(back to article)
<?php $var1 = "hello"; $var2 = null; if (isset($var1)) { echo '$var1 is set and is not null' . "\n"; } if (isset($var2)) { echo '$var2 is set and is not null' . "\n"; } else { echo '$var2 is not set or is null'; } ?>
Result:
Report an issue