Promote and demote HTML headings in PHP