I've created a PHP function named displayNav($i) and pass it the variable $i.
This function is responsible for rendering a navigation bar at the top of my web pages.
I want to apply the active class to the appropriate href tag based on the page the user is currently on,
as illustrated in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.