📅  最后修改于: 2022-03-11 14:53:50.277000             🧑  作者: Mango
$array = array('', '', 'other', '', 'other');
$counter = 0;
foreach($array as $value)
{
if($value === '')
$counter++;
}
echo $counter;