Printing an array without print_r tags php
<p>Not sure if I am asking the correct question but I have an array with a couple "List" names and I want to count how many times they occur in the array and print it. Here is the list:</p>

<pre><code>$array = ['EMC_IMP_PAT_ANT_REVIEW_MANG_20160105', 'EMC_IMP_PAT_ANT_REVIEW_MANG_20160105', 'EMC_IMP_PAT_ANT_REVIEW_MANG_20150105', 'EMC_IMP_PAT_ANT_REVIEW_MANG_30160105', 'EMC_IMP_PAT_ANT_REVIEW_MANG_20160205', 'EMC_IMP_PAT_ANT_REVIEW_MANG_20178105'];
</code></pre>

<p>I am currently using print_r and array_count_values to print and count through the array.</p>

<pre><code>print_r(array_count_values($array));
</code></pre>

<p>My output is:</p>

<pre><code>Array
(
    [IMC_UMP_WRAP_ANNUAL_REVIEW_MANM_20160105] =&gt; 2
    [IMC_UMP_WRAP_ANNUAL_REVIEW_MANM_20150105] =&gt; 1
    [IMC_UMP_WRAP_ANNUAL_REVIEW_MANM_30160105] =&gt; 1
    [IMC_UMP_WRAP_ANNUAL_REVIEW_MANM_20160205] =&gt; 1
    [IMC_UMP_WRAP_ANNUAL_REVIEW_MANM_20178105] =&gt; 1
)
</code></pre>

<p>I would like to somehow get rid of the word "Array" and the parentheses. My ideal output would be:</p>

<pre><code>[IMC_UMP_WRAP_ANNUAL_REVIEW_MANM_20160105] =&gt; 2
[IMC_UMP_WRAP_ANNUAL_REVIEW_MANM_20150105] =&gt; 1
[IMC_UMP_WRAP_ANNUAL_REVIEW_MANM_30160105] =&gt; 1
[IMC_UMP_WRAP_ANNUAL_REVIEW_MANM_20160205] =&gt; 1
[IMC_UMP_WRAP_ANNUAL_REVIEW_MANM_20178105] =&gt; 1
</code></pre>

<p>** Square brackets could be optional. thank you!</p>