PHP - how to print_r $_POST array?
<p>I have following table.</p>

<pre><code>&lt;form method="post" action="test.php"&gt;
&lt;input name="id[]" type="text" value="ID1" /&gt;
&lt;input name="value[]" type="text" value="Value1" /&gt;
&lt;hr /&gt;

&lt;input name="id[]" type="text" value="ID2" /&gt;
&lt;input name="value[]" type="text" value="Value2" /&gt;
&lt;hr /&gt;

&lt;input name="id[]" type="text" value="ID3" /&gt;
&lt;input name="value[]" type="text" value="Value3" /&gt;
&lt;hr /&gt;
&lt;input name="id[]" type="text" value="ID4" /&gt;
&lt;input name="value[]" type="text" value="Value4" /&gt;
&lt;hr /&gt;
&lt;input type="submit" /&gt;
</code></pre>

<p></p>

<p>And test.php file</p>

<pre><code>&lt;?php 

 $myarray = array( $_POST);
 foreach ($myarray as $key =&gt; $value) {

  echo "&lt;p&gt;".$key."&lt;/p&gt;";
  echo "&lt;p&gt;".$value."&lt;/p&gt;";
  echo "&lt;hr /&gt;";

} 

 ?&gt;
</code></pre>

<p>But it is only returning this: <code>&lt;p&gt;0&lt;/p&gt;&lt;p&gt;Array&lt;/p&gt;&lt;hr /&gt;</code> </p>

<p>What I'm doing wrong?</p>
