prepend $ to a string to make it a variable
<p>How do I prepend the $ sign to a string to make it a variable?</p>

<pre><code>Eg: 
$consumer = array()
$industrial = array()//These 2 are in a separate include file.

$var = $_GET['val'] // value here is 'consumer'

function ('$'.$var,$bar) //I'm trying to make consumer -&gt; $consumer
</code></pre>
