if string is undefined in php code example Example: php Undefined if (isset($variable)) { /* do something */ };