cara menambahkan field pada array php
$data2 = [];
foreach ($data as $item) {
$datax = [
'table' => 'test',
'data' => $item
];
$data2[] = $datax;
// $data2[] = $item;
};
dd($data2);
Lanjut Part : 1
Jam : 15:43:07
Durasi Part : 0:0:1
Durasi Total : 0:0:1
Punya Pertanyaan , Silahkan Whatsapp Langsung
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1