note 74538 added to function.trim
| From: | BendeBarman at osu1 dot php dot net | Date: | Mon, 16 Apr 2007 14:33:27 +0000 |
| Subject: | note 74538 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125442@lists.php.net to get a copy of this message | ||
I have made this script for deleting whitespace's in the whole string:
<?php
$String2 = $text;
echo "<br>";
//Search array and find spaces. Then do nothing
for($i = 0; $i <strlen($String2);$i++) {
if($String2[$i] == " ") {}
//Echo the letter when it is not a whitespace
else {
echo $String2[$i];
}
}
?>
----
Server IP: 194.109.193.76
Probable Submitter: 80.61.103.152
----
Manual Page -- http://www.php.net/manual/en/function.trim.php
Edit -- https://master.php.net/note/edit/74538
Del: integrated -- https://master.php.net/note/delete/74538/integrated
Del: useless -- https://master.php.net/note/delete/74538/useless
Del: bad code -- https://master.php.net/note/delete/74538/bad+code
Del: spam -- https://master.php.net/note/delete/74538/spam
Del: non-english -- https://master.php.net/note/delete/74538/non-english
Del: in docs -- https://master.php.net/note/delete/74538/in+docs
Del: other reasons-- https://master.php.net/note/delete/74538
Reject -- https://master.php.net/note/reject/74538
Search -- https://master.php.net/manage/user-notes.php