isset
Check whether a variable is empty. Also check whether the variable is set/declared:
<?php
$a = 0;
// True because $a is set
if (isset($a)) {
  echo "Variable 'a' is set.<br>";
}

$b = null;
// False because $b is NULL
if (isset($b)) {
  echo "Variable 'b' is set.";
}
?>
by Guram Azarashvili
2 years ago
PHP
functions
0
Pro tip: use ```triple backticks around text``` to write in code fences