[TYPO3-core] Another patch request for t3lib_htmlmail

Karsten Dambekalns karsten at typo3.org
Thu Jan 26 17:32:55 CET 2006


Hi.

On Thursday 26 January 2006 16:53, Dmitry Dulepov wrote:
> > $string = str_replace(chr(13).chr(10), chr(10), $string);	// Replace
> $string = preg_replace('/\r?\n/', chr(10), $string);

Err, str_replace slower than preg_replace? Any hard numbers to back that up?

> Generally, preg_* are faster than ereg_* 

Ack

> or other string functions. 

?!?

Karsten
-- 
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060126/c54a2e7b/attachment.pgp 


More information about the TYPO3-team-core mailing list