I\'ve got two files here:
ToBeIncludedFile.php
MainFile.php
The reason it echos first, is because it is called, and afterwards are the strings "concatenated" (more on that in a second):
What you want in ToBeIncludedFile.php is return "World!";, not echo.
Right now, this is what happens:
printOut(). That means, first that function is called: