Re: preg_replace() help
| From: | Richard Heyes | Date: | Sat, 14 Jul 2007 18:57:38 +0000 |
| Subject: | Re: preg_replace() help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258870@lists.php.net to get a copy of this message | ||
What am I doing wrong?Using regular expressions when you don't need to: $txt = str_replace(' ', ' ', substr($txt, strpos($txt, --))); Might be a few typos in there. And I may have mixed up the args. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support