I would like to ask php how to determine whether each one-dimensional array in a two-dimensional array is empty without using for and other loops, and count out the number of empty arrays, and find out the relevant functions in the system function.
$a = [
[],
[],
[],
[],
[]
];
$b = [
["a" => 1],
[],
[],
["b" => 2],
[]
];
for example, how do the above two arrays give elegant answers without loops or loops?