In certain other languages (AS3 for example), it has been noted that initializing a new array is faster if done like this var foo = []
rather than var foo = new Array()
for reasons of object creation and instantiation. I wonder whether there are any equivalences in PHP?
class Foo {
private $arr = array(); // is there another / better way?
}