Add PHP variable inside echo statement as href link address?

PHPServer Side ProgrammingProgramming

HTML in PHP

echo "<a href='".$link_address."'>Link</a>";

or

echo "<a href='$link_address'>Link</a>";

PHP in HTML

<a href="<?php echo $link_address;?>"> Link </a>
raja
Published on 07-Apr-2020 14:28:53
Advertisements