TAILIEUCHUNG - Professional Information Technology-Programming Book part 73

Tham khảo tài liệu 'professional information technology-programming book part 73', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Summary In this lesson you have learned how to store and manipulate date and time values in PHP. In the next lesson you will learn about classes in PHP and you will discover how to use third-party library classes that you download. Lesson 10. Using Classes In this lesson you will learn the basics of object-oriented PHP. You will see how a class is defined and how you can access methods and properties from third-party classes. Object-Oriented PHP PHP can if you want be written in an object-oriented OO fashion. In PHP5 the OO functionality of the language has been enhanced considerably. If you are familiar with other OO languages such as C or Java you may prefer the OO approach to programming PHP whereas if you are used to other procedural languages you may not want to use objects at all. There are after all many ways to solve the same problem. If you are new to programming as well as to PHP you probably have no strong feelings either way just yet. It s certainly true that OO concepts are easier to grasp if you have no programming experience at all than if you have a background in a procedural language but even so OO methods are not something that can be taught in a ten-minute lesson in this book The aim of this lesson is to introduce how a class is created and referenced in PHP so that if you have a preference for using objects you can begin to develop scripts by using OO methods. Most importantly however you will be able to pick up and use some of the many freely available third-party class libraries that are available for PHP from resources such as those at and those that are part of PEAR which you will learn about in Lesson 25 Using PEAR. What Is a Class A class is the template structure that defines an object. It can contain functionsalso known as class methodsand variablesalso known as class properties or attributes. Each class consists of a set of PHP statements that define how to perform a task or set of tasks that you want to repeat .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.