One man's voice Thoughts, rants and commentary of a simple man

28Nov/110

Simple PHP table maker

A little while ago I was in need of a way to take tab separated data sets and make HTML tables out of them cleanly. Mostly this was from data copied from a spreadsheet, but sometimes copying from web pages or even text documents has brought this need up for me. So in keeping with my mantra of "Why not write a program to do that?" I decided to write a simple HTML table maker that will take in tab separated, structured data and return an HTML table from it, complete with column headings, a caption and a summary (sidenote: I know that table summaries are being deprecated... still, I included it because at the moment they are still in use for pre-HTML5 markup).

So without further ado, I bring you my simple HTML table maker. It isn't the most robust thing in the world, but it is still pretty neat. Plus? It totally serves my purpose to the tee. So if you don't like it, why not gank the code for it and make it better?

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.