echo "<a href='".$link_address."'>Link</a>";
or
echo "<a href='$link_address'>Link</a>";
<a href="<?php echo $link_address;?>"> Link </a>
The above is the detailed content of Add PHP variable as href link address in echo statement?. For more information, please follow other related articles on the PHP Chinese website!