php isset

Posted by Paidboom - 4 months ago

php isset : The isset () function is used to check whether a variable is set or not. To check if a certain variable is set, you can use PHP isset() . · It is not actually a function, but a language construct.

$lan = 0;
// True because $lan  is set
if (isset($lan )) {
  echo "Variable 'lan ' is set.<br>";

$second= null;
// False because $secondis NULL
if (isset($second)) {
  echo "Variable 'second' is set.";