Re: Hyphens and MySQL
| From: | Josip Dzolonga | Date: | Fri, 28 Jan 2005 16:03:01 +0000 |
| Subject: | Re: Hyphens and MySQL | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38378@lists.php.net to get a copy of this message | ||
On Fri, 2005-01-28 at 14:21 +0000, Mark Benson wrote:
> Is there an easy way to search and replace/remove characters in a string in PHP?
www.php.net/str_replace , www.php.net/preg_replace . You can strip out
the - characters with str_replace("-", "", $string);
--
Josip Dzolonga,
dzolonga at mt dot net dot mk