title: Initializing class constant in constructor in PHP
body: <p>Just like in C++ is it possible to initialize class constant in the constructor?</p>
  
  <p>Similar to C++ it'd look like:</p>
  
  <pre><code>class Abc
  {
      const WIDTH;
  
      public __constructor($width):WIDTH($width) //WIDTH gets assigned here and is immutable
      {
          //I know syntax may not be ok but is anything similar possible in PHP?
      }
  
  }
  </code></pre>