php check where variable was declared code example Example: php see if undefined if (isset($variable)) { /* do something */ };