Jump to content

[SOLVED] IF Whitespace In $field Do This


EternalSorrow

Recommended Posts

This should be an easy problem to solve for most, but I'm baffled by the idea of whitespaces in i$fields.

 

What I want to know is how to find if a $field contains whitespace (just normal spaces, in this case) so I can perform a simple IF statement, like so:

 

if ($row['title'] has [[whitespace]]) {

$space = ' ';

}

else {

$space = '';

}

 

Thanks in advance for any help.

Link to comment
https://forums.phpfreaks.com/topic/181654-solved-if-whitespace-in-field-do-this/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.