# Need help with PHP array data -\> Flash

**URL:** <https://forum.kirupa.com/t/need-help-with-php-array-data-flash/324502>\
**Category:** flash\
**Created:** [August 24, 2011, 1:35pm UTC](https://forum.kirupa.com/t/need-help-with-php-array-data-flash/324502 "2011-08-24T13:35:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zenor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zenor/32/3634_2.png) [@Zenor](https://forum.kirupa.com/u/Zenor)\
**Post date:** [August 24, 2011, 1:35pm UTC](https://forum.kirupa.com/t/need-help-with-php-array-data-flash/324502/1 "2011-08-24T13:35:45Z")

</div>

Hello, I am having a lot of trouble trying to bring some php array’s data into flash.  
My php connects do a database and creates a php array(i have attached it to a var named $var), which I am not able to edit, only grab it’s data. So if I do a var\_dump($var) and trace in flash I get the array data:

```php
<i>(length=101)</i>
</pre><pre class='xdebug-var-dump' dir='ltr'>
<b>array</b>
  0 <font color='#cccccc'>=&gt;</font>
    <b>object</b>(<i>stdClass</i>)[<i>4</i>]
      <i>public</i> 'info' <font color='#ffffff'>'data1 here'</font> <i>(length=30)</i>
      <i>public</i> 'name' <font color='#cccccc'>'data2 here'</font> <i>(length=4)</i>
      <i>public</i> 'number' <font color='#ffffff'>'data3 here'</font> <i>(length=18)</i>
      <i>public</i> 'address' <font color='#cccccc'>'data4 here'</font> <i>(length=4)</i>

```

What I wanna do is display data1 data2 data3 data4(which are connected to the database so they are not static but change) into flash textfields.  
How can I do that? I’ve been told to create an xml but I am not quite sure how to link the array data with the xml.
