Here I have code such as following.
$Var = "Gas";
$Gasname[0] ="abc";
$Gasno[1] = 123;
echo ${$Var."name"[0]};
I have condition on $Var if value is Gas I will user Gase array in else case have to use another array like wise there are dynamic types of array.
Is there a way I can use dynamic array variable name.
array('gas' => [], 'another_gas' => []')