# String Parse to Array Format

**URL:** <https://forum.kirupa.com/t/string-parse-to-array-format/283220>\
**Category:** flash\
**Created:** [March 3, 2009, 8:10pm UTC](https://forum.kirupa.com/t/string-parse-to-array-format/283220 "2009-03-03T20:10:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stickaforkinit](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@stickaforkinit](https://forum.kirupa.com/u/stickaforkinit)\
**Post date:** [March 3, 2009, 8:10pm UTC](https://forum.kirupa.com/t/string-parse-to-array-format/283220/1 "2009-03-03T20:10:58Z")

</div>

I am having trouble parsing a string to an array

The string is as EXACTLY as follows:

the\_string="[[5,6,2,0,0,0,0],[0,2,0,2,0,3,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]]";

I need it to go into an array like this

level[0]=[5,6,2,0,0,0,0];  
level[1]=[0,2,0,2,0,3,0],  
level[2]=[0,0,0,0,0,0,0];  
level[3]=[0,0,0,0,0,0,0];

any help would be appreciated
