note 20372 added to function.str-replace
| From: | jpirkey at email dot com | Date: | Mon, 01 Apr 2002 20:45:46 +0000 |
| Subject: | note 20372 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28470@lists.php.net to get a copy of this message | ||
If you just want to remove characters in the subject string, send an empty string for the replace
variable.
Example (replace spaces in string):
$sometext = "This is some text!";
print(str_replace(" ","",$sometext));
The above code will print out the following:
Thisissometext!
--
http://www.php.net/manual/en/function.str-replace.php
http://master.php.net/manage/user-notes.php?action=edit+20372
http://master.php.net/manage/user-notes.php?action=delete+20372
http://master.php.net/manage/user-notes.php?action=reject+20372