Source Code:
(back to article)
<?php // Example 1 $myVariable = "Hello, world!"; if (isset($myVariable)) { echo "The variable is set."; } else { echo "The variable is not set." . PHP_EOL; } // Output: The variable is set. // Example 2 if (isset($someOtherVariable)) { echo "The variable is set."; } else { echo "The variable is not set."; } // Output: The variable is not set.
Result:
Report an issue