I would like to know how to append a variable to a link in PHP. I am grabbing the parameter by using $lang = $_GET['lang'];.
I would like to append the $lang variable to the link like below.
<li><a href="/categories/?lang=$lang">Categories</a></li>