title: PHP5: How come an included function always echoes first if I call it?
body: <p>I've got two files here:</p>
  
  <p>ToBeIncludedFile.php</p>
  
  <pre><code>&lt;?php
  function printOut(){
      echo "World!";
  }
  ?&gt;
  </code></pre>
  
  <p>MainFile.php</p>
  
  <pre><code>&lt;?php
  include("ToBeIncludedFile.php");
  
  echo "Hello ".printOut();
  ?&gt;
  </code></pre>
  
  <p>I would expect "Hello World!". Instead I get this: "World!Hello ". </p>
  
  <p>I know if I write return instead of echo, then everything is fine. Is it because I'm echoing a function that is already echoing a string? But then why would it print out the string "World!" first and not throw an error?</p>