title: PHP concatenation precedence
body: <p>Is this behaviour correct in PHP?</p>
  
  <pre><code>&lt;?php echo '-' . 1 + 1 . ' crazy cats'; ?&gt;
  // Outputs:
  0 crazy cats
  </code></pre>
  
  <p>I understand that minus is being concatenated to the first '1' and '-1' casted to integer, and not '2' to string.</p>
  
  <p>Please explain why.</p>
  
  <p>What is the best way to solve it?
  This one?</p>
  
  <pre><code>&lt;?php echo '-' . (string)1 + 1 . ' crazy cats'; ?&gt;
  </code></pre>