PHP Classes

Why do you use preg_replace() instead of strtr() or str_repla...

Recommend this page to a friend!

      Transliteration - Cyrillic to Latin  >  All threads  >  Why do you use preg_replace()...  >  (Un) Subscribe thread alerts  
Subject:Why do you use preg_replace()...
Summary:Package rating comment
Messages:2
Author:Ralf Mike Pretzlaw
Date:2009-03-29 11:13:56
Update:2009-04-20 15:15:47
 

Ralf Mike Pretzlaw rated this package as follows:

Utility: Sufficient
Consistency: Not sure

  1. Why do you use preg_replace()...   Reply   Report abuse  
Picture of Ralf Mike Pretzlaw Ralf Mike Pretzlaw - 2009-03-29 11:13:56
Why do you use preg_replace() instead of strtr() or str_replace() which are faster?

  2. Re: Why do you use preg_replace()...   Reply   Report abuse  
Picture of Mihailo Joksimovic Mihailo Joksimovic - 2009-04-20 15:15:47 - In reply to message 1 from Ralf Mike Pretzlaw
Well, honestly, I never used str_replace or strtr. I always used preg_replace, so I didn't know that there are faster functions for this kind of purpose :-)

Anyway, it's changed now to str_replace :-)

Thanks

 
For more information send a message to info at phpclasses dot org.