trik foreach php dengan chunk
$chunk = array_chunk($data, 30);
//dd($chunk);
ob_implicit_flush(true);
foreach ($chunk as $item) {
//dd($item);
foreach ($item as $item2) {
simpan_data("mahasiswa", $item2);
}
ob_flush();
sleep(1);
}
Lanjut Part : 1
Jam : 13:23:38
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