Tran Dinh Trong's Blog

Stuydy and share

Category Archives: PHP

parent:: AND self::

PHP supports two reserved class names that make it easier when writing OO
applications. PHP supports two reserved class names that make it easier when writing OO
applications. self:: refers to the current class and it is usually used to access
static members, methods, and constants. parent:: refers to the parent class and
it is most often used when wanting to call the parent constructor or methods. Read more of this post

Advertisements

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!