How to store the value of the child term of a taxonomy in an array


Example

I have terms like

Games
Football
Ball

I need the term ball to be stored in a matrix. Also for all terms