How to parse the string into an array?

0 like 0 dislike
10 views
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.
by | 10 views

1 Answer

0 like 0 dislike
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
asked May 4, 2019 by mrDolte
0 like 0 dislike
2 answers
asked Apr 14, 2019 by EnderStore
110,608 questions
257,186 answers
0 comments
33,771 users