Objects have been a feature of PHP since version 3, and a great deal of PHP’s built-in functionality is provided by objects (even if at glance, it doesn’t seem that way; for example, anonymous functions are implemented internally as Closure objects). In addition to core PHP, most of the popular frameworks and libraries are implemented in the OOP style. We’ve already had some exposure to objects in previous chapters, and now is a good point to get the fundamentals down.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Object Fundamentals

  • Paul Tregoing

摘要

Objects have been a feature of PHP since version 3, and a great deal of PHP’s built-in functionality is provided by objects (even if at glance, it doesn’t seem that way; for example, anonymous functions are implemented internally as Closure objects). In addition to core PHP, most of the popular frameworks and libraries are implemented in the OOP style. We’ve already had some exposure to objects in previous chapters, and now is a good point to get the fundamentals down.