My Array is like below:
Array (
[0] => Array
(
[DIST_NAME] => BANK MUAMALAT 1
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 8
)
[1] => Array
(
[year] => 2022
[total] => 5
)
)
)
[1] => Array
(
[DIST_NAME] => PUBLIC BANK
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 2
)
)
)
[2] => Array
(
[DIST_NAME] => KFT INVESTMENT FUNDS BERHAD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 2
)
)
)
[3] => Array
(
[DIST_NAME] => MAYBAN SECURITY SDN BHD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 2
)
)
)
[4] => Array
(
[DIST_NAME] => PTBK UNIT TRUST BERHAD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 2
)
)
)
[5] => Array
(
[DIST_NAME] => AMINVESTMENT GLOBAL BANK BERHAD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 3
)
)
)
[6] => Array
(
[DIST_NAME] => EON FINANCE INVESTMENT BERHAD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 2
)
)
)
[7] => Array
(
[DIST_NAME] => ENG JIA SECURITIES SDN BHD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 2
)
)
)
[8] => Array
(
[DIST_NAME] => PENGURUSAN BERSAMA KUMIPA BERHAD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 3
)
)
)
[9] => Array
(
[DIST_NAME] => AFFIN HWANG ASSET MANAGEMENT BERHAD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 2
)
)
)
[10] => Array
(
[DIST_NAME] => PHILLIP MUTUAL BERHAD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 2
)
[1] => Array
(
[year] => 2022
[total] => 2
)
)
)
[11] => Array
(
[DIST_NAME] => BANK COMCRADE SDN BHD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 3
)
)
)
[12] => Array
(
[DIST_NAME] => SYARIKAT MAJU JAYA FINANCE SDN BHD
[dataArray] => Array
(
[0] => Array
(
[year] => 2021
[total] => 5
)
)
)
) I want to show table Like below example :
Please help me. Thanks