php how to check if input is empty code example Example: php if input is empty $a = empty($a) ? "Default value" : $a;