php array all keys empty

Solutions on MaxInterview for php array all keys empty by the best coders in the world

showing results for - "php array all keys empty"
Juana
30 Nov 2018
1array('key1' => null, 'key2' => null, 'key3' => null, 'key4' => null)
2if (!array_filter($array)) {
3    // all values are empty (where "empty" means == false)
4}