title: php: why declare an array $array=array() - what is the benefit of it?
body: <p>If you simply want to assign values to a variable this way:<br /><br/><code>$array[]="value 1"</code> and <code>$array[]="value 2"</code><br /><br/>do you first have to declare <code>$array=array()</code>? Obviously you don't HAVE to, as it works without it, but why would you do that then? Or what is the benefit of doing it?</p>