I have a function and the result is array. After print_r($result) here’s the array :
Array
(
[0] => Array
(
[id_jabatan] => 3
[keterangan_jabatan] => Direktur Utama
[posisi] => Direktur
[parent_id] => 0
)
)
Array
(
[0] => Array
(
[id_jabatan] => 4
[keterangan_jabatan] => Direktur YMFK
[posisi] => Direktur
[parent_id] => 3
)
)
The result from the function is 2 difference array. How to merge this all array into :
Array
(
[0] => Array
(
[id_jabatan] => 3
[keterangan_jabatan] => Direktur Utama
[posisi] => Direktur
[parent_id] => 0
)
[1] => Array
(
[id_jabatan] => 4
[keterangan_jabatan] => Direktur YMFK
[posisi] => Direktur
[parent_id] => 3
)
)
I have try array_merge but it didn’t work. Any suggest?