[wp-trac] [WordPress Trac] #10357: Use strtr() when possible

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 8 00:11:18 UTC 2009


#10357: Use strtr() when possible
-------------------------+--------------------------------------------------
 Reporter:  scribu       |       Owner:  scribu   
     Type:  enhancement  |      Status:  new      
 Priority:  low          |   Milestone:  2.8.2    
Component:  General      |     Version:           
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
 When replacing strings of the same lenght, it's better to use strtr()
 instead of str_replace() because it's faster.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10357>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list