我正在转换PHP 5.3库以在PHP 5.2上工作.支持我的主要方法是使用后期静态绑定return new static($options);,如果我将其转换为return new self($options)将得到相同的结果?
return new static($options);
return new self($options)
new self和之间有什么区别new static?
new self
new static
php static late-static-binding
late-static-binding ×1
php ×1
static ×1