php global variables with variable names
<p>I am trying to have a function that among other things declares global variables based on a variable that i give it.
the part that fails is making the variables global</p>

<pre><code>function setGlobalVariable($name) {

    global $name, $arrayname_{$name};
}
</code></pre>

<p>any idea? 
thanks :)</p>
