check array null php with range key code example
Example: php array all keys empty
array('key1' => null, 'key2' => null, 'key3' => null, 'key4' => null)
if (!array_filter($array)) {
// all values are empty (where "empty" means == false)
}
array('key1' => null, 'key2' => null, 'key3' => null, 'key4' => null)
if (!array_filter($array)) {
// all values are empty (where "empty" means == false)
}