0
我正在使用一個查詢,但我不能通過emil添加組,所以我使用其他選項,但我無法理解如何將contact_email與mt4_account_no分組。如何將數組合併爲相同的值?
我的數組提的打擊:
[0] => Array
(
[contact_fullName] => Walt Wuller
[contact_email] => [email protected]
[mt4_account_no] => 12291
[balance] => 0
)
[1] => Array
(
[contact_fullName] => Walt Wuller
[contact_email] => [email protected]
[mt4_account_no] => 12293
[balance] => 0
)
[2] => Array
(
[contact_fullName] => Walt Wuller
[contact_email] => [email protected]
[mt4_account_no] => 12289
[balance] => 7480.69
)
[3] => Array
(
[contact_fullName] => Walt Wuller
[contact_email] => [email protected]
[mt4_account_no] => 12292
[balance] => 0
)
但我想創造這樣的:
Array
(
[0] => Array
(
[contact_fullName] => Walt Wuller
[contact_email] => [email protected]
[mt4_account_no] => Array
(
[0] => 12291
[1] => 12293
[2] => 12289
[3] => 12292
)
[balance] => Array
(
[0] => 0
[1] => 0
[2] => 7480.69
[3] => 0
)
)
)
所以我怎麼可以創建此類型的數組。
謝謝你的Sergiu木香它做工精細 我是vtigerCRM的開發者,我任何幫助與我聯繫 –
如果你喜歡我的回答不是,請選擇我的答案作爲最佳答案:) –