If you are making a link in a PHP document, that is outside of the PHP brackets, you just use HTML. Here is an example:
<a href="https://twitter.com/angela_bradley">My Twitter</a>If the link needs to be inside of the PHP you have two options. Option one is to end the PHP and then reopen it. Here is an example:
<?php
----- My PHP Code----
?>
<?phpThe other option is to print or echo the HTML code inside of the PHP. Here is an example:
----- My PHP Code----
?>
<a href="https://twitter.com/angela_bradley">My Twitter</a>
<?php
----- My PHP Code----
?>
<?phpAnother thing we can do is create a link from a variable. Let's say that the variable $url holds the URL for a website that someone has submitted, or that we have pulled from a database. We can use the variable in our HTML.
Echo "<a href=https://twitter.com/angela_bradley>My Twitter</a>"
?>
<a href="https://twitter.com/angela_bradley">My Twitter</a>
<?php
Echo "<a href=$url>$site_title</a>"
?>

