Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Misc
8.8K+ articles
PHP
3.9K+ articles
PHP-function
2.3K+ articles
PHP-Questions
423+ articles
PHP Programs
344+ articles
PHP-basics
94+ articles
PHP-OOP
24 posts
Recent Articles
Popular Articles
PHP | Constructors and Destructors
Last Updated: 07 April 2025
In PHP, constructors and destructors are special methods that are used in object-oriented programming (OOP). They help initialize objects when they are created and clean u...
read more
Web Technologies
PHP
PHP-OOP
What is the point of interfaces in PHP ?
Last Updated: 24 October 2019
An Interface allows users to create programs specifying the public methods that a class must implement, without involving the complexities and details of how the particula...
read more
Web Technologies
Picked
PHP
PHP Programs
PHP-OOP
PHP | Encapsulation
Last Updated: 10 October 2019
In today's technical world, maintaining privacy has become one of the demanding needs for the protection of important data. Whenever data modified in one function affects ...
read more
Web Technologies
PHP
PHP-OOP
PHP | class_alias() Function
Last Updated: 16 April 2020
The class_alias() function is an inbuilt function in PHP which is used to create an alias name of the class. The functionality of the aliased class is similar to the origi...
read more
Web Technologies
PHP
PHP-function
PHP-OOP
PHP | class_exists() Function
Last Updated: 27 April 2020
The class_exists() function is an inbuilt function in PHP which is used to check whether the given class is defined or not.Syntax:bool class_exists( string $class_name, bo...
read more
Web Technologies
PHP
PHP-function
PHP-OOP
PHP | get_called_class() Function
Last Updated: 27 April 2020
The get_called_class() function is an inbuilt function in PHP which is used to get the class name where the static method is called. Syntax:string get_called_class( void )...
read more
Web Technologies
PHP
PHP-function
PHP-OOP
PHP | get_class_methods() Function
Last Updated: 16 April 2020
The get_class_methods() function is an inbuilt function in PHP which is used to get the class method names.Syntax:array get_class_methods( mixed $class_name )Parameters: T...
read more
Web Technologies
PHP
PHP-function
PHP-OOP
PHP | get_class() Function
Last Updated: 16 April 2020
The get_class() function is an inbuilt function in PHP which is used to return the class name of an object.Syntax:string get_class( object $object )Parameters: This functi...
read more
Web Technologies
PHP
PHP-function
PHP-OOP
PHP Access Modifiers
Last Updated: 12 June 2025
In object-oriented programming, access specifiers are also known as access modifiers. These specifiers control how and where the properties or methods of a class can be ac...
read more
Web Technologies
PHP
PHP Programs
PHP-OOP
PHP | get_object_vars() Function
Last Updated: 01 October 2021
The get_object_vars() function is an inbuilt function in PHP that is used to get the properties of the given object. When an object is made, it has some properties. An ass...
read more
Web Technologies
PHP
PHP-function
PHP-OOP
How to mimic multiple constructors in PHP ?
Last Updated: 16 July 2021
Constructors are special member functions for initial settings of newly created object instances from a class.In PHP, a constructor is a method named __construct(), which ...
read more
Web Technologies
Picked
PHP
PHP Programs
PHP-function
PHP-OOP
PHP-Questions
What are the final class and final method in PHP ?
Last Updated: 28 June 2022
In this article, we will see what is final class final method in PHP, along with knowing their implementation through the examples.The terms class, object, method, and fi...
read more
Web Technologies
Picked
PHP
PHP-OOP
PHP-Questions
How to access class members as array indexes in PHP ?
Last Updated: 24 August 2022
In object-oriented programming languages like C++, Java, PHP, etc class members can be accessed by either "." or "-" operator along with the object for non-static members ...
read more
Web Technologies
Picked
PHP
PHP-OOP
PHP-Questions
How to Create an Object Without Class in PHP ?
Last Updated: 24 September 2024
In PHP, creating an object without a class refers to creating an instance of the stdClass, a built-in PHP class for creating generic objects. It allows developers to insta...
read more
Web Technologies
PHP
PHP-OOP
PHP-Questions
What is autoloading classes in PHP ?
Last Updated: 14 October 2022
In order to use a class defined in another PHP script, we can incorporate it with include or require statements. However, PHP's autoloading feature does not need such expl...
read more
Web Technologies
Picked
PHP
PHP-OOP
PHP-Questions
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !