note 19756 deleted from function.str-replace by nlopess
| From: | nlopess@php.net | Date: | Sun, 11 Jan 2004 09:54:34 +0000 |
| Subject: | note 19756 deleted from function.str-replace by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63305@lists.php.net to get a copy of this message | ||
Note Submitter: lordanthron@yahoo.com
----
i was using a flat-file db to record some info from a form, and the most common way to distinguish
between fields is |. i was looking for a way to keep the script from adding extra fields when
someone did explode ("|", $text), and here it is:
$text = str_replace("|", "|", $text);
hope it helps someone.