I don't know what you mean by "put inside", but I have a hunch you might want to use multidimensional arrays, e.g.
$block['num'][$i]
(btw, put quotes around your literal array indexes.)
This:
$block$i
won't work, as your test script has no doubt shown you.