PHP OOP
Object-Oriented Programming is the coolest thing in PHP!
-
PHP OOP
Nguyên tắc SOLID trong PHP
Trong phần này, chúng ta cùng nhau tìm hiểu và triển khai 1 cách đơn giản nguyên lý trong lập…
Read More » -
PHP OOP
PHP OOP Autoloading
Autoloading allows you to automatically include the class files. Why Autoloading? The more clean and clear your code is the…
Read More » -
PHP OOP
PHP OOP Namespaces
Namespaces allow you to have multiple classes with the same name. Explanations Explanation 1 Assume that we have a variable…
Read More » -
PHP OOP
PHP OOP Static
In all the previous chapters, we created objects from classes before accessing methods and properties of it. Static Methods and…
Read More » -
PHP OOP
PHP OOP Constants
Constants are pieces of information stored in the computer’s memory which cannot be changed once assigned. Class Constants are constants…
Read More » -
PHP OOP
PHP OOP Traits
Trong PHP, 1 class chỉ có thể đơn kế thừa (single inheritance), để khắc phục vấn đề này, chúng ta…
Read More » -
PHP OOP
PHP OOP Abstract Classes and Methods
When the parent class Knows what to do and Need its child class to do some tasks it can let…
Read More » -
PHP OOP
PHP OOP Inheritance
The Concept of Inheritance In Object-Oriented Programming, when a class derives from another class, it is called inheritance. The derived…
Read More » -
PHP OOP
PHP OOP Visibility
The Definition of Visibility in OOP Visibility of a class member (property, method or constant) is where it can be…
Read More » -
PHP OOP
PHP OOP Constructors and Destructors
Constructors: Constructors are called when an object is created from a class. Destructors: Destructors are called when an object destructs.…
Read More » -
PHP OOP
PHP OOP $this Keyword
$this refers to the current object. $this is a pseudo-variable (also a reserved keyword) which is only available inside methods.…
Read More » -
PHP OOP
Các phương thức trong lập trình hướng đối tượng PHP
Methods are used to perform actions. In Object Oriented Programming in PHP, methods are functions inside classes. Their declaration and…
Read More » -
PHP OOP
PHP OOP Objects
If the class was a blueprint, objects are houses. We can create multiple objects from a class. These objects are…
Read More » -
PHP OOP
Các thuộc tính của OOP trong PHP
Properties are variables Classes can have variables within it. Those variables are called properties. A property is a normal PHP…
Read More » -
PHP OOP
PHP OOP Class
A class is a piece of code describing what we need to save (properties) and what kind of operations we…
Read More » -
PHP OOP
Giới thiệu về lập trình hướng đối tượng trong PHP
Object-Oriented Programming is the coolest thing in PHP! What is Object-Oriented Programming? Object-Oriented Programming, also known as OOP is a…
Read More »