title: How to append a statement using the null coalesce operator to a string?
body: <p>I have a string with an operator in:</p>
  
  <pre><code>echo 'abc.' . $type ?? 'no type' . 'xyz';
  </code></pre>
  
  <p>If $type exists I want that to be the value, if it does not, I want 'no type' to be the value.</p>
  
  <p>But with the above I just get a $type undefined error. It's not defined in my example as I want 'no type' to be outputted.</p>
  
  <p>Where am I going wrong?</p>