title: How to view user's username in twitter card with php?
body: <p>I want to view each user's username inside the twitter card when they share their username or a message that they've received in my website. but the error I'm getting is that twitter meta tag is not reading the variable contents instead it is treating it as a string.</p>
  <p>Here are my meta tags on my website:</p>
  <pre><code>  &lt;meta property=&quot;twitter:card&quot; content=&quot;summary&quot;&gt;
    &lt;meta name=&quot;twitter:app:name:googleplay&quot; content=&quot;&quot;&gt;
    &lt;meta name=&quot;twitter:app:id:googleplay&quot; content=&quot;&quot;&gt;
    &lt;meta property=&quot;twitter:site&quot; content=&quot;&quot;&gt;
    &lt;meta name=&quot;twitter:title&quot; content=&quot;&lt;?php echo '$username'; ?&gt;&quot;&gt;
    &lt;meta name=&quot;twitter:text:title&quot; content=&quot;&lt;?php echo '$username'; ?&gt;&quot;&gt;
  </code></pre>
  <p>If you can guide me on what I am doing wrong and how to do what I would like to do.</p>