title: How to echo a variable from the function
body: <p>How to echo a variable from the function? This is an example code.</p>
  
  <pre>
  function test() {
    $foo = 'foo';   //the variable
  }
  
  test();   //executing the function
  
  echo $foo;   // no results in printing it out
  
  </pre>