title: PHP set multiple variables from a function
body: <p>I am trying to set three variables from a test function.</p>
  
  <p>Here's my code so far:</p>
  
  <pre><code>function test()
  {
      $x = 1;
      $y = 2;
      $z = 3; 
  
  
  }
  
  test();
  
  # should print '1', '2', and '3'
  echo $x; 
  echo $y;
  echo $z;
  </code></pre>