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