title: add variable to ternary operator Php
body: <p>I want to summarize this ternary operator and add a new variable to the result (in a single line)</p>
  
  <pre><code>$names= "Joe";
  $channel ="joe";
  
   $user_alt= $names ? $names : "";
   $user_alt= $user_alt." @".$channel;
  </code></pre>
  
  <p><strong>EXPECTED RESULT</strong></p>
  
  <pre><code>   &lt;img src=""  alt="Joe @joe" /&gt;
  </code></pre>