How to distinguish radio and checkbox type in drupal I have a content type which consists four types of fields. checkbox, radio, select, select multiple

I'm using field_info_instances('node','bundle_name') in my custom module to get filed info for my content type. I need this info to use somewhere.

My question is, how can I distinguish the checkbox type and radio type.same problem for select and multi select also.

Here is the output
I got the solution, I've used field_info_field function, In the return array  I found the difference in cardinality.

The cardinality for checkbox is -1 and for radio button is 1. Similarly for select is 1 and multi select is -1 

I found it myself, is there any better solution than this?