For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > January 2005 > Re: [PHP-DB] Hyphens and MySQL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Hyphens and MySQL
Josip Dzolonga

2005-01-28, 3:57 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com