Re: cvs: pear /File_IMC/File/IMC Parse.php
| From: | Daniel Convissor | Date: | Sun, 29 May 2005 14:44:43 +0000 |
| Subject: | Re: cvs: pear /File_IMC/File/IMC Parse.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37866@lists.php.net to get a copy of this message | ||
On Sat, May 28, 2005 at 03:45:54PM -0000, Paul Jones wrote:
> + $text = str_replace('\:', ':', $text);
> $text = str_replace('\;', ';', $text);
> $text = str_replace('\,', ',', $text);
> $text = str_replace('\n', "\n", $text);
How about profiling those multiple calls against passing an array of
search and replace items to one str_replace() call?
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409