PHP String Concatentation Performance

I’m not sure if this is totally correct and I have no fixed way of measuring this (other than that I don’t get any timeout errors anymore) but I’ve noticed a significant difference when choosing between two different methods of string concatenation: Slow way: foreach($oranges as $orange){ $orange_str = $orange_str . $orange; } Better way: [...]