开发者

The inner depths of 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜