title: PHP. by using "global $var" to get a global variable, do we get a copy of the global var or get a reference to that global variable?
body: <p><code>global $user</code> vs <code>$user = $GLOBALS['user']</code></p>
  
  <p>by using "global $var" to get a global variable, do we get a copy of the global var or get a reference to that global variable? </p>
  
  <pre><code>global $user;
  </code></pre>
  
  <p>Is $user a copy of global object or is a reference to actual global variable?</p>
  
  <p>Thanks. </p>