PHP

Filling an Array with Objects in PHP

While working in PHP I found the need to fill an array with new objects on the fly. So at first I tried the array_fill function that worked fine for values b...