<?php $a1 = ['a', 'b', null, 'd']; $a2 = ['a', 'b', 'c', 'd']; if (count(array_filter($a1)) < count($a1)) { echo '$a1 has at least one empty value'; } if (count(array_filter($a2)) < count($a2)) { echo '$a2 has at least one empty value'; }
You have javascript disabled. You will not be able to edit any code.