There is an array of two-dimensional array $result[$a][$b] .
Each $a has several $b cells.
I need to write a loop that would write down the value of $a , then certain values ​​in $b
Type

 $result[$a]=x; $result[$a][b1]=y; $result[$a][b2]=z и т.д. 

So $result[$a]=x does not work.

Tell me how to write the value in this cell?

    1 answer 1

     $result['a'][] = 'b'; $result['a'][] = 'с';