title: insert img inside href in php
body: <p>how to replace <strong>img</strong> inside <strong>href</strong> on this php code </p>
  
  <p>this is the <strong>img</strong> code </p>
  
  <pre><code>&lt;img class="img-responsive" src="&lt;?php bloginfo('template_url');?&gt;/images/&lt;?php echo $term-&gt;name;?&gt;.png" alt="&lt;?php echo $term-&gt;name;?&gt;"&gt;
  </code></pre>
  
  <p>i wanna replace it inside <strong>href</strong> in this code </p>
  
  <pre><code>&lt;?php
  echo '&lt;a href="?cat='.$term-&gt;term_id.'"&gt;
      &lt;i class="fa fa-youtube-play fa-5x" aria-hidden="true"&gt;&lt;/i&gt;
  &lt;/a&gt;';
  echo "&lt;/div&gt;";
  }
  ?&gt;
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>&lt;?php echo '&lt;a href="?cat='.$term-&gt;term_id.'"&gt; &lt;i class="fa fa-youtube-play fa-5x" aria-hidden="true"&gt;&lt;/i&gt; &lt;img class="img-responsive" src="&lt;?php bloginfo('template_url');?&gt;/images/&lt;?php echo $term-&gt;name;?&gt;.png" alt="&lt;?php echo $term-&gt;name;?&gt;"&gt; &lt;/a&gt;'; echo "&lt;/div&gt;"; } ?&gt;
  </code></pre>