开发者

The inner depths of PHP

开发者 https://www.devze.com 2023-01-05 04:28 出处:网络
I\'ve been studying Visibility issue in PHP (public, private, protected) and wondered how is this sort of \"dom-building\" is implemented in PHP? I mean there should be some kind of algorithm that PHP

I've been studying Visibility issue in PHP (public, private, protected) and wondered how is this sort of "dom-building" is implemented in PHP? I mean there should be some kind of algorithm that PHP uses to go through all your classes and establish relations between them. Not sure i开发者_如何转开发f it is called "dom-building" though, but I think the same algorithms are utilized by the modern IDE's that may use it for auto-completion.

Can someone redirect me to a nice resource? Thank you.


PHP does not pass through all your classes and establish relations between them. Only at run-time, when you call a method on another class, PHP checks whether that method is accessible (i.e. public or in some cases protected).

0

精彩评论

暂无评论...
验证码 换一张
取 消