PHP - Add CSS class to body

0 votes
204 views
added Mar 26, 2018 in PHP by LC Marshal Captain (25,790 points)
<?php 
$aboutpage = 'about';
?>

On body tag

<body class="<?php echo $aboutpage; ?>">
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...