i have an array structure like below
Array
(
[0] => ICRAF Subjects
[1] => Agriculture/Agroforestry
[2] => ICRAF Subjects
[3] => Natural Resource Management
[4] => Science Domains
[5] => SD4-Land health decisions
[6] => Uncategorized
)
Array
(
[0] => ICRAF Subjects
[1] => Agriculture/Agroforestry
[2] => ICRAF Subjects
[3] => Natural Resource Management
[4] => Science Domains
[5] => SD4-Land health decisions
[6] => Sustainable development Goals SDG
[7] => SDG13-Climate change
)
Array
(
[0] => Uncategorized
)
Array
(
[0] => ICRAF Subjects
[1] => Agriculture/Agroforestry
)
how can i get it as
(
ICRAF Subjects
Agriculture/Agroforestry
ICRAF Subjects
Natural Resource Management
Science Domains
SD4-Land health decisions
Uncategorized
)
( ICRAF Subjects
Agriculture/Agroforestry
ICRAF Subjects
Natural Resource Management
Science Domains
SD4-Land health decisions
Sustainable development Goals SDG
SDG13-Climate change
)
(
Uncategorized
)
(
ICRAF Subjects
Agriculture/Agroforestry
)
</div>