Is tere any difference between these two codes or is it just a matter of taste?


var days = new Array('Sunday','Monday');

var days = Array('Sunday','Monday');

Is that javascript? If so, then I don't think there is much of a difference. I personally use var blah = []; to define an array.

I think I got it wrong. PHP doesn't use first style. My mistake.