PHP: Global variable scope
<p>I have a separate file where I include variables with thier set value.
How can I make these variables global?</p>

<p>Ex. I have the value <code>$myval</code> in the <code>values.php</code> file. In the <code>index.php</code> I call a function which needs the <code>$myval</code> value.</p>

<p>If I add the <code>include(values.php);</code> in the beggining of the index.php file it looses scope inside the function. I will call the same variable in multiple functions in the index.php file.</p>
