Last active
July 23, 2016 06:15
-
-
Save mikemadisonweb/a246b4fb2cffe711cc03 to your computer and use it in GitHub Desktop.
True isset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (array_key_exists('varShouldBeSet', get_defined_vars())) { | |
// variable $varShouldBeSet exists in current scope | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment