David Carrdcblogdev.hashnode.devยทNov 15, 2022Use PHP to generate table of contents from heading tagsI wanted to create a table of contents from the post's heading tags automatically without having to change the headings like adding an id or anchor. I started to look at existing solutions and came across this custom function on Stackoverflow by sjaa...400 readstocAdd a thoughtful commentNo comments yetBe the first to start the conversation.