verificar la longitud de la cadena es mayor que 0 php
if(strlen(trim($string)) > 0){
// $string has at least one non-space character
}
Blue-eyed Booby
if(strlen(trim($string)) > 0){
// $string has at least one non-space character
}