title: PHP ternary inside concatenation with no else?
body: <p>I want to check if 2 variables are the same and if so, echo a string. Is this possible within a concatenation? And to do it without creating a separate function?</p>
  
  <p>e.g.</p>
  
  <p><code>$var = 'here is the first part and '. ( $foo == $bar ) ? "the optional middle part" .' and the rest of the string.'</code></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Note, I'm looking to see if there is a way to do it <em>without</em> the <code>: ''</code>. A "binary operator" if you will.</p>