how to convert the associative array to single dimensional array in php
<p>i m getting the array as below </p>

<pre><code>$teachers=array(array('post_id' =&gt; "81",'video_id' =&gt; array("81","73")), array('post_id' =&gt; "81",'video_id' =&gt; array("81","73")));
</code></pre>

<p>if all the key-value are same i would like to display only one key-value ( as in above example) as below : </p>

<p>i would like to display </p>

<pre><code>{ post_id -&gt; array([0]-&gt; 81 [1]-&gt; 73) }
</code></pre>

<p>And if its different as in the below example it should display both the arrays.. </p>

<pre><code>{ $teachers=array(array('post_id' =&gt; "81",'video_id' =&gt; array("81","73")), 
array('post_id' =&gt; "81",'video_id' =&gt; array("81", "59")));}
</code></pre>

<p>i would like to display </p>

<pre><code>{post_id -&gt; array([0]-&gt; 81 [1]-&gt; 73 [2] -&gt; 59) }
</code></pre>
