What is difference between Global keyword and array in php
<p>I have to change an script to run on a server with Global Variables disabled.</p>

<p>so i am wondering if this is not working:</p>

<pre><code>   function setData(){
echo $GLOBALS['data'];
}
</code></pre>

<p>is this gonna work ?</p>

<pre><code>       function setData(){
global $data;
echo $data;
    }
</code></pre>

<p>If now what is the solution ?</p>
