search

Home  >  Q&A  >  body text

How to merge this kind of data?

array(2) { ["Shihua"] => array(2) { [0] => array(3) { ["company_name"] => string(6) "Shihua" [ "project"] => string(12) "Huating Sunshine" ["count"] => int(1) } [1] => array(3) { ["company_name"] => string( 6) "Shihua" ["project"] => string(9) "天灁福" ["count"] => int(2) } } ["Baiju"] => array(1) { [0] => array(3) { ["company_name"] => string(6) "Baiju" ["project"] => string(9) "Repulse Bay" ["count"] => ; int(1) } }}array(3) { ["世华"] => array(4) { [0] => array(2) { ["project"] => string(9) "天灁福" ["count"] => int(0) } [1] => array(2) { ["project"] => string(12) "Huating Sunshine" ["count"] => int(0) } [2] => array(2) { ["project"] => string(12) "Zhenshui Town" ["count"] => int(0) } [3] => array(2) { ["project"] => string(12) "Xiangjiang Huafu" ["count"] => int(0) } } ["Jianor"] => ; array(4) { [0] => array(2) { ["project"] => string(9) "天灁福" ["count"] => int(0) } [1] = > array(2) { ["project"] => string(12) "Huating Sunshine" ["count"] => int(0) } [2] => array(2) { [" project"] => string(12) "Zhenshui Town" ["count"] => int(0) } [3] => array(2) { ["project"] => string( 12) "Hong Kong House" ["count"] => int(0) } } ["Baiju"] => array(4) { [0] => array(2) { ["project" ] => string(9) "天灁福" ["count"] => int(0) }[1] => array(2) { ["project"] => string(12) "Huating Sunshine" ["count"] => int(0) } [2] => array(2 ) { ["project"] => string(12) "Zhenshui Town" ["count"] => int(0) } [3] => array(2) { ["project"] = > string(12) "Xiangjiang Huafu" ["count"] => int(0) } }}

简简单单简简单单1700 days ago981

reply all(2)I'll reply

  • 沐言

    沐言2020-05-25 22:28:21

    Merge what?

    reply
    0
  • 简简单单

    Two arrays with different count values ​​need to be merged into the other array.

    简简单单 · 2020-05-26 00:10:11
  • Cancelreply