unexpected '[', expecting ')' - array in constructor
<p>I have this code:</p>

<pre><code>class foo
{
    public function __construct
    (
        $bar[var1]  = 0,
        $bar[var2]  = 0,
        $bar[var3]  = 0
    )
    {
        /* do something */
    }
}
</code></pre>

<p>and I get this error:</p>

<blockquote>
  <p>Parse error: syntax error, unexpected '[', expecting ')' in <em>$this</em> on line 5</p>
</blockquote>

<p>and I have no idea about whats wrong.</p>

<p><strong>EDIT:</strong></p>

<p>I want to initialize the class like this: <code>$instance = new foo($bar)</code>
($bar is an array)</p>

<p>Because the class would expect many arguments, and I can easily return the array from the constructor.
Let me know if this is not a good idea.</p>
