Originally Posted by DoubleDee
No, the latter echo is not in the function. No looping, the latter echo just calls the declared function twice -- What it outputs is:
test This is a
This is a test
because the first one is done with string addition (periods) meaning the string has to be built by PHP before being sent to echo, running the inlined function BEFORE the echo executes... using commas as delimiters is treated as separate values sent to echo individually, which is faster, involves less shoving memory around, and means it will execute in the order most people would 'think' it should.