RafaelBS 0 Denunciar post Postado Outubro 1, 2015 Boa tarde, se alguém puder me ajuda ficaria grato, tenho esse array abaixo com Accounts unicas e valores iguais, preciso agrupar as que tiverem o account igual e dentro desses acconts colocar em arrays os PROFITCODE que são diferentes. array:496 [▼ 0 => {#184 ▼ +"Account": "1.1.1.01.001" +"PROFITCODE": "10001005" +"VALOR": "500.000000" } 1 => {#201 ▼ +"Account": "1.1.1.01.002" +"PROFITCODE": "20001001" +"VALOR": ".000000" } 2 => {#202 ▼ +"Account": "1.1.1.01.003" +"PROFITCODE": "30001001" +"VALOR": "-407.260000" } 3 => {#204 ▼ +"Account": "1.1.1.02.001" +"PROFITCODE": "10001003" +"VALOR": "-124.000000" } 4 => {#205 ▼ +"Account": "1.1.1.02.001" +"PROFITCODE": "10001004" +"VALOR": "-540.000000" } 5 => {#206 ▼ +"Account": "1.1.1.02.001" +"PROFITCODE": "10001005" +"VALOR": "-32556.050000" } Compartilhar este post Link para o post Compartilhar em outros sites