Supposing that jQuery serialize form send data which is hard to decrypt :

`[someindex][0][anotherindex][0][] = 'value'`

In PHP, I need to decompose it into a real array, which is :

```
array(
   someindex => array(
      0 => array(
          anotherindex => array(
             0 => array('value')
          )
      )
   )
)

```

Is there a function that do this or how do I achieve this ?

EDIT:

Another word, If I have `$name = '[someindex][0][anotherindex][0][]'` as a PHP string, I want to create an array with the same structure

Sample : <http://sandbox.onlinephpfunctions.com/code/5d604f087aab07d48be27969e94dc9656fd90ffd>
HTML client side : <https://jsfiddle.net/bgay81q2/>

JSON Data sent by client : 

```
[{"name":"Data[index1][0][index2][0][]","value":"test"},{"name":"Data[index1][0][index2][0][]","value":"second value"}]

```