[PHP] explain these testresults (search/replace)

2001-11-13 Thread Niklas Fondberg
1.7303379774094 seconds with strtr() 1.557923078537 seconds with preg_replace() 1.494078040123 seconds with str_replace() 1.4984160661697 seconds with ereg_replace() /* source ---8---*/ ?php $files = array(html1.html, html2.html); $strtr_rep = array( pre = PRE, li=LI, tr =

[PHP] explain these testresults (search/replace)

2001-11-13 Thread Niklas Fondberg
1.7303379774094 seconds with strtr() 1.557923078537 seconds with preg_replace() 1.494078040123 seconds with str_replace() 1.4984160661697 seconds with ereg_replace() /* source ---8---*/ ?php $files = array(html1.html, html2.html); $strtr_rep = array( pre = PRE, li=LI, tr =