comprobar si existe variable php code example Example 1: php if isset if (isset(true)) { } Example 2: php isset if (isset($val)) { }