note 21631 added to function.str-replace
| From: | eden85 at globo dot com | Date: | Tue, 21 May 2002 19:19:25 +0000 |
| Subject: | note 21631 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30858@lists.php.net to get a copy of this message | ||
Hello !
Detz a simple example of how to use this function.
The following example delete every whitespaces becoming them into nothing.
<?
$string="here are some words !";
echo str_replace(" ","",$string);
#it returns "herearesomewords!"
?>
It
s very useful when were talkin` about extensive numbers and registers.
Thanx ! (:^>)-|
--
http://www.php.net/manual/en/function.str-replace.php
http://master.php.net/manage/user-notes.php?action=edit+21631
http://master.php.net/manage/user-notes.php?action=delete+21631
http://master.php.net/manage/user-notes.php?action=reject+21631