title: How to print values of array using print_r php?
body: <p>I have an array of values stored in variable "do"
  It's something like this but not exactly</p>
  
  <pre><code>&lt;html&gt;
    &lt;input type='text' name='do' id='do'&gt;
    &lt;input type='text' name='do' id='do'&gt;
    &lt;input type='text' name='do' id='do'&gt;
    &lt;input type='text' name='do' id='do'&gt;
    &lt;input type='text' name='do' id='do'&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and I print it all with the use of [print_r] then it gives a result </p>
  
  <pre><code>&lt;?php
  print_r($_POST['do']);
  
  //and i try this also
  foreach($_POST as $key =&gt; $val){
    echo $key . ' : ' . htmlentities($val,ENT_QUOTES) . "&lt;br&gt;\n";?&gt;   
  }
  
  
  [do=1&amp;do=2&amp;do=3]
  </code></pre>
  
  <p>how could I modify or just print the values like this:</p>
  
  <pre><code>1
  2
  3
  </code></pre>