there is a line
some1[some2][some3]
in fact it is the name input. There is a line. There is a value.
It is necessary to disassemble and to array
$ar = [ 'some1'=>[ 'some2' => [ 'some3' => 'some value'
Can't figure out how to do it. Nesting is unknown.