how to create custom fields automatically

how to create custom fields automatically

Hi,
 
I need to create many custom fields in contact module. Is there any way to create all of them automatically after passing in all fields names instead of creating one by one manually
 
Thanks for helps,
Haili