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
Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.
Andreas B. Vestergaard -
Dorian Sabitov -
Daniel Roe -
{η!б€£ $!£¤η€я¤}• -
Top comments (0)