how to set a value in an undefined defined php code example Example: php see if undefined if (isset($variable)) { /* do something */ };