Possible Duplicate:
how to count non-empty entries in php array?
I want to count the number of keys in an array that aren't empty/null.
EG:
array(1>'asdf',2>'fdas',3>'');
count($array) would return 3, I want a function that returns 2 as 3 is empty
Are there any php built in functions to do this? How can it be done?