Tengo este multi array con arrays dentro :
$marray = array(
array("id" => "1", "be_pro" => 6, "name" => "a1", "service" => 4a),
array("id" => "2", "be_pro" => 6, "name" => "a1", "service" => 4d),
array("id" => "3", "be_pro" => 4, "name" => "a4", "service" => 3d),
array("id" => "4", "be_pro" => 4, "name" => "a4", "service" => 3s),
array("id" => "6", "be_pro" => 4, "name" => "a4", "service" => 34),
array("id" => "8", "be_pro" => 3, "name" => "a3", "service" => 4r),
array("id" => "8", "be_pro" => 3, "name" => "a3", "service" => 4d)
);
Me gustaria coger "id", "be_pro" and "name" una vez y añadir "service" mas "service" del siguiente array( sin id, be pro , hombre) hasta que "be_pro" en el siguiente array sea diferente , si lo es , ponerlo en el siguiente nuevo array.
como puedo obtener esto?
array deseado:
$newmarray = array(
array("id" => "1", "be_pro" => 6, "name" => "a1", "service" => 4a, "service" => 4d),
array("id" => "3", "be_pro" => 4, "name" => "a4", "service" => 3d, "service" => 3s,"service" => 34),
array("id" => "8", "be_pro" => 3, "name" => "a3", "service" => 4r, "service" => 4d)