title: PHP Code in HTML
body: <p>here $check variable is from php code..which is bolean...
  Actually if users put correct username and password this variables becomes true..
  if this variable is true then i want replace the "Login" with "My account"..
  how can i do that?
  any help would be appreciated.
  Thanks. </p>
  
  <pre><code>if ($check) {
    &lt;a href="myaccount.php" class="almanac"&gt;
      &lt;svg viewBox="0 0 100 25" class="shape-tab"&gt;
        &lt;use xlink:href="#shape-tab"&gt;&lt;/use&gt;
      &lt;/svg&gt;
      &lt;span&gt;My Account&lt;/span&gt;
    &lt;/a&gt;
  } else {
    &lt;a href="login.php" class="almanac"&gt;
      &lt;svg viewBox="0 0 100 25" class="shape-tab"&gt;
        &lt;use xlink:href="#shape-tab"&gt;&lt;/use&gt;
      &lt;/svg&gt;
      &lt;span&gt;Login&lt;/span&gt;
    &lt;/a&gt;
  }
  </code></pre>
  
  <p>But problem is that $check is defined in php code.</p>