title: PHP unable to parse concatinated string in class
body: <p>I come across this strange behavior of PHP, assigning string:</p>
  
  <pre><code>class a {
      public $str = "a" . 'b';
  }
  
  $obj = new a();
  echo $obj-&gt;str;
  </code></pre>
  
  <p>never works, throws following error:</p>
  
  <blockquote>
    <p>PHP Parse error:  syntax error, unexpected '.', expecting ',' or ';' in /var/www/test.php on line 2</p>
  </blockquote>
  
  <p>while using as plain PHP it works:</p>
  
  <pre><code>$str = "a" . 'b';
  </code></pre>