Referring to a static member of a subclass

后端 未结 1 772
渐次进展
渐次进展 2021-01-21 16:58

I wish there was a sub keyword that would make the code below print value on execution. There isn\'t though and I wonder - is there an existing way to

相关标签:
1条回答
  • 2021-01-21 17:22

    I think you are looking for static::$variable. That's called Late Static Binding and is available as of PHP 5.3.

    0 讨论(0)
提交回复
热议问题