# PHP POST string to AS3 array

**URL:** <https://forum.kirupa.com/t/php-post-string-to-as3-array/325406>\
**Category:** flash\
**Created:** [October 13, 2011, 5:39pm UTC](https://forum.kirupa.com/t/php-post-string-to-as3-array/325406 "2011-10-13T17:39:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kill\_robot\_kill](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kill_robot_kill/32/359_2.png) [@kill\_robot\_kill](https://forum.kirupa.com/u/kill_robot_kill)\
**Post date:** [October 13, 2011, 5:39pm UTC](https://forum.kirupa.com/t/php-post-string-to-as3-array/325406/1 "2011-10-13T17:39:26Z")

</div>

I need some help creating an array from a string send via POST from a php loop.

The string looks sorta like this: keyword=key1val & text=text1val & keyword=key2val & text=text2val  
(spaces added for readability)

I have a little bit of control over how the string is sent. So I could add numbers to the keys in the string, so they read like this keyword1=key1val & text1=text1val & keyword2=key2val

basically I want to then end up with an array  
noteCards[0] = [“key1val”, “text2val”];  
noteCards[1] = [“key1val”, “text2val”];

etc.
