Assuming you actually mean an array like
array('key1' => null, 'key2' => null, 'key3' => null, 'key4' => null)
the answer is simply
if (!array_filter($array)) {
// all values are empty (where "empty" means == false)
}
Assuming you actually mean an array like
array('key1' => null, 'key2' => null, 'key3' => null, 'key4' => null)
the answer is simply
if (!array_filter($array)) {
// all values are empty (where "empty" means == false)
}
For further actions, you may consider blocking this person and/or reporting abuse
Ahmad Tibibi -
Arpit Rathore -
Cesar Aguirre -
Ajit Kumar -
Top comments (0)