次の2つの配列が動的に成長しています。キーに基づいて個々の配列をマージする
まず配列
Array
(
[Development Fund] => Array
(
[0] => Array
(
[LedgerID] => 573befb96e3dceb6468b4567
[LedgerName] => Development Fund
[PanITNO] => UK07AK1787
[dateOfPayment] => 01-Dec-2015
[totalAmountPaid] => 49000
[tdsRate] => 2
[totalDudections] => 980
)
[1] => Array
(
[LedgerID] => 573befb96e3dceb6468b4567
[LedgerName] => Development Fund
[PanITNO] => UK07AK1787
[dateOfPayment] => 01-Mar-2016
[totalAmountPaid] => 4000
[tdsRate] => 2
[totalDudections] => 80
)
[2] => Array
(
[LedgerID] => 573befb96e3dceb6468b4567
[LedgerName] => Development Fund
[PanITNO] => UK07AK1787
[dateOfPayment] => 23-Mar-2016
[totalAmountPaid] => 19000
[tdsRate] => 2
[totalDudections] => 380
)
)
[Registration Fee] => Array
(
[0] => Array
(
[LedgerID] => 5739b50b6e3dce450e8b4567
[LedgerName] => Registration Fee
[PanITNO] => ITR0
[dateOfPayment] => 02-Jan-2016
[totalAmountPaid] => 1000
[tdsRate] => 10
[totalDudections] => 100
)
)
[Purchase1] => Array
(
[0] => Array
(
[LedgerID] => 573c321e6e3dcec3228b4567
[LedgerName] => Purchase1
[PanITNO] => ITR0
[dateOfPayment] => 02-Jan-2016
[totalAmountPaid] => 8000
[tdsRate] => 2
[totalDudections] => 160
)
)
)
二番目の配列
Array
(
[Development Fund] => Array
(
[0] => Array
(
[Amountdeposited] => 1000
[dateOfDeposited] => 01-Jan-2016
[challaNumber] => 2
)
[1] => Array
(
[Amountdeposited] => 50000000
[dateOfDeposited] => 03-Mar-2016
[challaNumber] => 5555
)
[2] => Array
(
[Amountdeposited] => 90000
[dateOfDeposited] => 24-Mar-2016
[challaNumber] => 999
)
)
)
私は、出力等がキーに基づいて、次の必要があります。
決勝配列
Array
(
[Development Fund] => Array
(
[0] => Array
(
[LedgerID] => 573befb96e3dceb6468b4567
[LedgerName] => Development Fund
[PanITNO] => UK07AK1787
[dateOfPayment] => 01-Dec-2015
[totalAmountPaid] => 49000
[tdsRate] => 2
[totalDudections] => 980
[Amountdeposited] => 1000
[dateOfDeposited] => 01-Jan-2016
[challaNumber] => 2
)
[1] => Array
(
[LedgerID] => 573befb96e3dceb6468b4567
[LedgerName] => Development Fund
[PanITNO] => UK07AK1787
[dateOfPayment] => 01-Mar-2016
[totalAmountPaid] => 4000
[tdsRate] => 2
[totalDudections] => 80
[dateOfDeposited] => 03-Mar-2016
[challaNumber] => 5555
)
[2] => Array
(
[LedgerID] => 573befb96e3dceb6468b4567
[LedgerName] => Development Fund
[PanITNO] => UK07AK1787
[dateOfPayment] => 23-Mar-2016
[totalAmountPaid] => 19000
[tdsRate] => 2
[totalDudections] => 380
[Amountdeposited] => 90000
[dateOfDeposited] => 24-Mar-2016
[challaNumber] => 999
)
)
[Registration Fee] => Array
(
[0] => Array
(
[LedgerID] => 5739b50b6e3dce450e8b4567
[LedgerName] => Registration Fee
[PanITNO] => ITR0
[dateOfPayment] => 02-Jan-2016
[totalAmountPaid] => 1000
[tdsRate] => 10
[totalDudections] => 100
)
)
[Purchase1] => Array
(
[0] => Array
(
[LedgerID] => 573c321e6e3dcec3228b4567
[LedgerName] => Purchase1
[PanITNO] => ITR0
[dateOfPayment] => 02-Jan-2016
[totalAmountPaid] => 8000
[tdsRate] => 2
[totalDudections] => 160
)
)
)
それがどのPHPの組み込み関数を使用して行うことが可能かどう示唆してください。
ウムお勧めしてください」繰り返す意味した任意のPHP直接の関数も可能です私のための緊急の。誰もそれが大好きだとは思わない。私は誰かがあなたの質問をdownvotes場合は驚かないだろう。 – theruss