PHP Periksa apakah array asosiatif nol
if (in_array(null, $array, true) || in_array('', $array, true)) {
// There are null (or empty) values.
}
Helpful Hyena
if (in_array(null, $array, true) || in_array('', $array, true)) {
// There are null (or empty) values.
}