Check your body id with PHP

/ Published in: PHP
Save to your folder(s)

Previously, I posted a little snippet I found on how to generate a special body class on each .php page. I, later, needed to get that body class and echo out a piece of HTML, which depended on my current page. So here is the snippet that I came up with. Simple, but was useful for me.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.