I am using print_r on a variable which gives me the following output
Array
(
[0] => 95.2
[1] => 94.7
[2] => 95
[3] => 33.6
)
Array
(
[0] => 100
[1] => 95
[2] => 91.90000000000001
[3] => 33.6
)
I want to split them into two variable dynamically. Like $var1 and $var2. If there were three iterations, i would want it to be three variables. Is it possible in php? In the current scenario i want
$var1= (
[0] => 95.2,
[1] => 94.7,
[2] => 95,
[3] => 33.6
)
and
$var2= (
[0] => 100,
[1] => 95,
[2] => 91.90000000000001,
[3] => 33.6
)
and i want to both to be generated dynamically and if possible i want the count of the iterations as well. Thank you in advance