How To Write A Link In PHP
June 18th, 2010
This is something that every PHP Programmer should be very aware of - the creation of links using PHP. To create a link in PHP is very simple. Here are a couple of ways to do this:
echo ‘<a href=”MYWEBSITE.COM”>My Website</a>’;
OR
echo “<a href=’MYWEBSITE.COM’>My Website</a>”;
OR
echo “<a href=\”MYWEBSITE.COM\”>My Website</a>”;
This is fairly basic but there are alot of hits to the website searching for this. So I hope this helps the PHP Programmer looking for this information.