I have a .php page which has a lot of HTML parts in it. I am running a FOR loop and for each value in FOR loop, I want to pass a PHP variable in anchor tag which is inside the loop.
I have tried this:
for($i =0; $i<5 ; $i++)
{
<a href = "Test.html?ID= <?php $i ?> > Sample text </a>
}
But it isn't working.