I want to generate a json array and store it in my db.
I get the values and run a loop to generate.

when I encode it I'm getting ArrayArrayArray

Can anyone see where I'm going wrong

```
for ($i=0; $i<=$sTotal;$i++){ 
    $layout_array .= array(array("cellID" => '"'. $_POST['cell_'.$i] .'"',"studentID" => $_POST['user_'.$i]),);
}
$layout_array .= array(array("cellID" => "null","studentID" => "null"));
$layout = json_encode($layout_array);
echo $layout;

```

Cheers