note 108156 added to function.trim
| From: | cwt at cwtp dot no | Date: | Tue, 03 Apr 2012 10:23:37 +0000 |
| Subject: | note 108156 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186946@lists.php.net to get a copy of this message | ||
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;
}
----
Server IP: 85.19.212.230
Probable Submitter: 85.164.9.161
----
Manual Page -- http://www.php.net/manual/en/function.trim.php
Edit -- https://master.php.net/note/edit/108156
Del: integrated -- https://master.php.net/note/delete/108156/integrated
Del: useless -- https://master.php.net/note/delete/108156/useless
Del: bad code -- https://master.php.net/note/delete/108156/bad+code
Del: spam -- https://master.php.net/note/delete/108156/spam
Del: non-english -- https://master.php.net/note/delete/108156/non-english
Del: in docs -- https://master.php.net/note/delete/108156/in+docs
Del: other reasons-- https://master.php.net/note/delete/108156
Reject -- https://master.php.net/note/reject/108156
Search -- https://master.php.net/manage/user-notes.php