I have this array:
$title = array('new year', 'cuti bersama', 'cuti bersama');
$date = array('2018-1-1', '2018-1-10', '2018-2-13');
I combined them into
$title_date = array_combine($title, $date);
What i get is only 1 cuti bersama
, it has same title but different date.
how to allow same title in combined array?
My expected output is like this:
array(
[new year] => '2018-1-1'
[cuti bersama] => '2018-1-10'
[cuti bersama] => '2018-2-13'
);