Get repeated key => values in every array within a multiarray + other no repeated key = > values
<p>i have this multi array "$marray wich has inside some array with some similar key = value and some not look like this :</p>

<pre><code>$marray = array(
 array("id" =&gt; "1", "be_pro" =&gt; 6, "name" =&gt; "a1", "service" =&gt; 4a),
 array("id" =&gt; "2", "be_pro" =&gt; 6, "name" =&gt; "a1", "service" =&gt; 4d),
 array("id" =&gt; "3", "be_pro" =&gt; 4, "name" =&gt; "a4", "service" =&gt; 3d),
 array("id" =&gt; "4", "be_pro" =&gt; 4, "name" =&gt; "a4", "service" =&gt; 3s),
 array("id" =&gt; "6", "be_pro" =&gt; 4, "name" =&gt; "a4", "service" =&gt; 34),
 array("id" =&gt; "8", "be_pro" =&gt; 3, "name" =&gt; "a3", "service" =&gt; 4r),
 array("id" =&gt; "8", "be_pro" =&gt; 3, "name" =&gt; "a3", "service" =&gt; 4d)
);
</code></pre>

<p>So i would like to get new arrays with "id", "be_pro" and "name" once then "service" plus "service" from next array till "be_pro" in the new array is different , so if is different put in the next array.</p>

<p>How should i do this? </p>

<p>what i need is print a multi array and within and array with every row with similar be_pro</p>
