Question : php check for empty string
Answered by : nate-stringham
if (empty($var)) {
echo '$var is either 0, empty, or not set at all';
}
Source : https://www.php.net/manual/en/function.empty.php | Last Update : Sat, 14 Mar 20
Question : php check if text is blank
Answered by : repulsive-rat-zwk4ewvlil4m
if(trim($text) == ''){ echo '$text is empty';
}
Source : | Last Update : Thu, 04 Nov 21