title: PHP - concatenate or directly insert variables in string
body: <p>I am wondering, What is the proper way for inserting PHP variables into a string?
  <br/><br/>
  <strong>This way:</strong><br/></p>
  
  <pre><code>echo "Welcome ".$name."!"
  </code></pre>
  
  <p><strong>Or this way:</strong><br/></p>
  
  <pre><code>echo "Welcome $name!"
  </code></pre>
  
  <p>Both of these methods work in my <code>PHP v5.3.5</code>. The latter is shorter and simpler but I'm not sure if the first is better formatting or accepted as more proper.</p>