PHP Verifique la cadena vacía
if (empty($var)) {
echo '$var is either 0, empty, or not set at all';
}
Nate
if (empty($var)) {
echo '$var is either 0, empty, or not set at all';
}
if(trim($text) == ''){
echo '$text is empty';
}