How can i check to see if a string only contains spaces?
if (strlen(trim($str)) == 0)
or if you don't want to include empty strings,
if (strlen($str) > 0 && strlen(trim($str)) == 0)
1.4m articles
1.4m replys
5 comments
57.0k users