title: Is static array property not possible in php?
body: <p>Below is my code in php,and I am getting error:</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '[' in /LR_StaticSettings.php on line 4</p>
  </blockquote>
  
  <pre><code>&lt;?php
  class StaticSettings{
      function setkey ($key, $value) {
          self::arrErr[$key] = $value; // error in this line
      }
  }
  ?&gt;
  </code></pre>
  
  <p>I want to use statically not <code>$this->arrErr[$key]</code> so that I can get and set static properties without creating instance/object.</p>
  
  <p>Why is this error? Can't we create static array? </p>
  
  <p>If there is another way, please tell me. Thanks</p>