I want to export data that I stored in array in a tabular form to PDF or something similar to that.
Let's say a user has cleared ten levels. The array stores Level number, score, lives, time spent to clear the level.
I should be able to export the data in the following way.
Level Number Score Lives Time Spent (hrs)
1 50 5 0.2
2 90 3 0.35
3 110 2 0.41
4 180 6 0.75
5 230 4 1.20
Is there any way to export this data in a tabular form? Export can be downloading file with these details.
Can anyone help.
Thanks in advance.