[pending_work] => Array
(
[0] => Array
(
[tmp_name] => D:\xampp\tmp\php4B33.tmp
[error] => 0
[name] => Chrysanthemum.jpg
[type] => image/jpeg
[size] => 879394
)
[1] => Array
(
[tmp_name] =>
[error] => 4
[name] =>
[type] =>
[size] => 0
)
[2] => Array
(
[tmp_name] =>
[error] => 4
[name] =>
[type] =>
[size] => 0
)
[3] => Array
(
[tmp_name] =>
[error] => 4
[name] =>
[type] =>
[size] => 0
)
)
This is the above array which is giving array values. As you can see there is only one 'tmp_name' field which is not empty and other are empty. How can i check and count wether atleast one of tmp_name is not empty ?. I have four input types for uploading images and I want to check for atleast one of the image should be uploaded.
foreach?