the count() function will tell you if there are no indecies the array but if you just want to check to see the values are empty:
<?
function check_empty ($array) {
$empty = true;
foreach ($array as $value) {
if ($value) {$empty = false;}
}
return $empty;
}
$array = array (
'1' => '',
'2' => '',
'3' => '',
'4' => '',
'5' => ''
);
if (check_empty ($array)) {echo 'This array has all empty values';}
else {echo 'This array has at least one non-empty value';}
?>