I have this array being sent to my view
Array
(
[0] => stdClass Object
(
[emg_id] => 2
[fkit] => 1
[door] =>
)
)
I would like to count how many elements are empty, NULL, or '0'.
I tried using count but it always returns '1', instead of counting all of the elements, so I can later determine which satisfy my conditions above.
Any ideas what I'm doing wrong?