对象初始化器,简化了对象的构造和初始化。
Object initializers, which ease construction and initialization of objects.
对象初始化器指定一个或多个对象的域或属性的值。
An object initializer specifies values for one or more fields or properties of an object.
就php来说,这个对象初始化器的参数是path、host和port。
In the case of PHP, the arguments to this object initializer are path, host and port.
应用推荐