Child Table Field names

Hello Guys,
I have a query, i have a child table in main DocType and i want to get the names of fields in that child table in an array … how can i do that ?? Any help will be highly appreciateable…
thanks in advance