What PHP code will echo or print the redirect link without getting us redirected in front end? | SoloLearn: Learn to code for FREE!

0

What PHP code will echo or print the redirect link without getting us redirected in front end?

Suppose we have a link https://abcd which will redirect us to link https://134 when we click on it. How can I echo https://134 link without getting redirected to that webpage?

5/14/2020 8:53:00 AM

Ashish Sah

1 Answer

New Answer

0

You need to send the url from php as a string, and then put it in the href of an <a> tag in html. so you code will look something like: <a href="<?php echo $url; ?>">Link name</a>