Category: PHP

PHP – Automatic “Table of Contents” based on headers (h1, h2, etc)

Works like a charm.

Also it add automatic ids for your tags, for automatic linking.

Demo here: http://assist-software.net/blog/qualsyst-iso-management-application

Source: http://www.westhost.com/contest/php/function/create-table-of-contents/124