how to check a variable is defined or not in php code example Example: if exist php if (isset($var)) { // Code here }