Hi!
I am using a str_replace ($Array1, $array2, $str); to translate a page. Every array is contained of approximatelly 5000 words, so the script is loading very slow.
The page is not so small, but the strings, which are to be translated are just 4 or 5 words. I wanna ask you:
Which will be faster:
1) translate ONCE the whole page like what I am doing currently (run the str_replace ince, but in $str put the whole page)
2) run ($Array1, $array2, $str); about 5 times, but in the $str put not the whole page, but only a word
😕😕😕: