I'm trying to pass an array of variable names to be assigned to the list() function, and I'm wondering if it's even possible. My intention is for list($variables) to parse $values.
$variables = array("$var1","$var2","$var3");
$values = array('Value1','Value2','Value3');
//Can I simply pass an array of variable names to be assigned here
list($values) = explode("&", $values);
To clarify, my intention is to have PHP execute this:
list($var1, $var2, $var3) = explode("&", $values);