Überprüfen Sie,
if(empty(trim($myVar))) {
echo "Error"
} else {
echo "success";
}
Muro
if(empty(trim($myVar))) {
echo "Error"
} else {
echo "success";
}