How do I prepend the $ sign to a string to make it a variable?
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 -> $consumer
Don’t forget to check that the value of $_GET[‘val’] is a value you (the programmer) expect and nothing else.