Here is my array ouput
Array ( [1] => 1 [2] => 2 [3] => )
How do I know the [3] => is empty?
[3] =>
An other solution:
$array = array('one', 'two', ''); if(count(array_filter($array)) == count($array)) { echo 'OK'; } else { echo 'ERROR'; }
http://codepad.org/zF9KkqKl