Concatenating strings or using multiple echo parameters: which is faster?

Viewed 1539

Suppose I have two PHP statements:

echo "foo"."bar"

echo "foo", "bar"

Notice the different ways of concatenating the strings - using a . or a ,.

I realise the actual differences between the two methods, that using , gives multiple parameters to the keyword echo, whereas using . actually joins the strings together before echoing.

But my question is, which way is faster?

1 Answers
Related