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
Mary Alice -
Lloyd Rivers -
ILshat Khamitov -
Andrea Mancuso -
Top comments (0)