The isset() Function : Variable Set Unset « Language Basics « PHP
- PHP
- Language Basics
- Variable Set Unset
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