title: How to concatenate variable with anchor's href
body: <p>I'm noob in php, and i'm trying to concatenate href with words or values ex:</p>
  
  <pre><code>$name = "anonymous";
  echo '&lt;a href = "profile.php"&gt;'.$name.'&lt;/a&gt;&lt;br/&gt;';
  </code></pre>
  
  <p>I want it to look like this when the user clicked the link.</p>
  
  <pre><code>echo '&lt;a href = "profile.php/anonymous"&gt;'.$name.'&lt;/a&gt;&lt;br/&gt;';
  </code></pre>
  
  <p>I've tried doing this, but it's not working.</p>
  
  <pre><code>echo '&lt;a href = "profile.php/&lt;?php echo $name;?&gt;"&gt;'.$name.'&lt;/a&gt;&lt;br/&gt;';
  </code></pre>