# Some help with PHP arrays

**URL:** <https://forum.kirupa.com/t/some-help-with-php-arrays/278635>\
**Category:** Uncategorized\
**Created:** [January 2, 2009, 11:25pm UTC](https://forum.kirupa.com/t/some-help-with-php-arrays/278635 "2009-01-02T23:25:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![philsbury](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@philsbury](https://forum.kirupa.com/u/philsbury)\
**Post date:** [January 2, 2009, 11:25pm UTC](https://forum.kirupa.com/t/some-help-with-php-arrays/278635/1 "2009-01-02T23:25:24Z")

</div>

Hi,

I need a bit of help with an array. I’m posting quantities through a form and picking it up as an array which when printed looks like this:  
Array ( [item1] =\> 4 [item2] =\> 1 )

What I want to do is now extract that data and display it as a list similar to:  
item1, item1, item1, item1, item2, item2

Any ideas?

Thanks  
Phil
