I have this multidimensional array (called $values):
Array ( [0] => Array ( [0] => 5 [1] => 2 [2] =>
Instead of
${'arr'.$cnt}[] = ...
use
$arr[$cnt][] = ...
Problem solved. :)
There's no need for variable variables when what you're really looking for is an array.