The isset() Function : Variable Set Unset « Language Basics « PHP






The isset() Function

<html>
<head>
     <title>Isset()</title>
</head>
<body>
<?php
     $my_var = 100;
   
     if(isset($my_var)) {
          print("\$my_var is set... the value is " . $my_var);
     }
   
     print("<br/>");
     print(isset($some_var) . "<br />");
   
     $some_var = "I am set";
     print(isset($some_var) . "<br />");
?>
</body>
</html>

           
       








Related examples in the same category

1.IsSet variable
2.Unset variable
3.unset() Function
4.UnSet array element