Building a Table from an array

There is always a need to display the data we receive from database in a nice presentable way. If you are planning to do this using <table> tags, following function will help you.

Use it like this