note 108156 deleted from function.trim by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 12:33:37 +0000 |
| Subject: | note 108156 deleted from function.trim by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189683@lists.php.net to get a copy of this message | ||
Note Submitter: cwt at cwtp dot no
----
I needed a quick function to check if a string was "trimmable".
Maybe some of you could need this:
function trim_check($str){
if(strlen($str) > strlen(trim($str))) return true;
else return false;
}