PHP - Extending Class

后端 未结 2 1644
清酒与你
清酒与你 2020-12-14 12:02

I\'ve done lots and lots of code in PHP that is object-oriented, but up until now, all of my classes have been, \"singular\", I suppose you can call it. I am in the process

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 12:27

    You should look into the concept of Late Static Binding in PHP. This allows you to access a static constant or function from the class that was called.

提交回复
热议问题