Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

PHP - How to create hyperlink from string?

Lets say I have a string called:

$url = "http://yahoo.com";/

How can I convert the variable $url to a clickable hyperlink?

Thanks

1 Answer

Relevance
  • 1 decade ago
    Favourite answer

    echo "<a href=\"".$url."\">The Name of the Link</a>"

    A period is the concatenation operator.

    Source(s): Personal Experiance
Still have questions? Get answers by asking now.