<< |  >>
#7882 Dodano: 04-11-2015 13:02. Głosów: 119
W komentarzach dokumentacji funkcji str_replace():

A faster way to replace the strings in multidimensional array is to json_encode() it, do the str_replace() and then json_decode() it.

This method is almost 3x faster (in 10000 runs.) than using recursive calling and looping method, and 10x simpler in coding.

<< |  >>