Contoh Foreach if Foreach Untuk data tidak ditemukan
foreach ($query as $item_query) {
$found = false;
foreach ($x as $item_x) {
if ($item_query["_id"] == $item_x) {
$found = true;
break;
}
}
if (!$found) {
$all["id"] = $item_query["_id"];
$all['aktif'] = 0; // or any other value you want to indicate it's not found
$all2[] = $all;
}
// $semua["aktif"] = $a;
}
Lanjut Part : 1
Jam : 17:00:31
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