1 2 3 4 5 6 7 8 9
<?php $test = " sfdf d "; if(trim($test)){ if (!empty($test)) echo "true"; else echo "false"; } ?>
1
true