# Printing array:php

**URL:** <https://forum.kirupa.com/t/printing-array-php/178796>\
**Category:** Uncategorized\
**Created:** [February 14, 2006, 10:27am UTC](https://forum.kirupa.com/t/printing-array-php/178796 "2006-02-14T10:27:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FreakSheep](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@FreakSheep](https://forum.kirupa.com/u/FreakSheep)\
**Post date:** [February 14, 2006, 10:27am UTC](https://forum.kirupa.com/t/printing-array-php/178796/1 "2006-02-14T10:27:53Z")

</div>

Hey. I’m putting a mysql result into an array, then using array\_count\_values on it to pick out the distincts. I was just wondering how you would go about printing that. my array is called $data, and it looks like this

```
	  Array ( [/url.php] =&gt; 13 [/cp.php] =&gt; 1 )

```

I want to list both values, but im kinda confused. I’m sure its pretty easy…

\_naaman
