When declaring an array as a class member, which way should it be done?
class Test1 { private $paths = array(); public function __construct() {
I'd suggest doing this when declaring a class variable. A constructor can be overriden in extending classes, which might result in E_NOTICEs or even E_WARNINGs if any of your functions depend on this variable being an array (even an empty one)