Re: [PHP] str_replace performance in large mailing script

2003-08-24 Thread David Otton
On Sun, 24 Aug 2003 15:38:13 +0100, you wrote: >Second tip is that sprintf() should be faster than str_replace(). Compare: > >$text = "Hello %s"; >$name = "John"; > >echo (str_replace ("%s", $name, $text)); >echo (sprintf ($text, $name)); Thinking about it, straight concatenation should be faster

Re: [PHP] str_replace performance in large mailing script

2003-08-24 Thread David Otton
On Sun, 24 Aug 2003 14:42:01 +0200, you wrote: >I have a mailing script that sends individualised mails to users(some >users even get more than one mail). >I have a template html mail file. I individualise this by using >str_replace function. >It is really slow. >Can anyone point me to some perf