well if u want to check if the string is blank then it wud work ...but if u want to check if the string contains white spaces...
if (preg_match("/[ \t]/",$u_name))
print " Whitespaces found";
else
print "No whitespaces found";
this checks for a single blank space or a tab. hope this is what u were looking for.
Note the space before \t.