title: HTML/PHP: How can we insert PHP variable into anchor tag of html?
body: <p>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.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>for($i =0; $i&lt;5 ; $i++)
  { 
  &lt;a href = "Test.html?ID= &lt;?php $i ?&gt; &gt; Sample text &lt;/a&gt;
  }
  </code></pre>
  
  <p>But it isn't working.</p>