Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
PHP
3.8k+ articles
PHP-function
2.2k+ articles
PHP Programs
610+ articles
PHP-Questions
410+ articles
PHP-basics
93 articles
PHP-keyword
2 articles
PHP-OOP
24 posts
Popular Articles
Recent Articles
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
...read more
Web Technologies
PHP-OOP
PHP
PHP-Questions
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,
...read more
Web Technologies
PHP-function
PHP-OOP
PHP
PHP Access Modifiers
Last Updated: 17 April 2025
In object-oriented programming, access specifiers are also known as access modifiers. These specifiers control how and where the properties
...read more
Web Technologies
PHP-OOP
PHP
PHP Programs
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
PHP
3.8k+ articles
PHP-function
2.2k+ articles
PHP Programs
610+ articles
PHP-Questions
410+ articles
PHP-basics
93+ articles
PHP-keyword
2+ articles
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
...read more
Web Technologies
PHP-function
PHP-OOP
PHP
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 $
...read more
Web Technologies
PHP-function
PHP-OOP
PHP
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 mo
...read more
Web Technologies
PHP-OOP
PHP
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 wh
...read more
Web Technologies
PHP-OOP
PHP
PHP | Type Casting and Conversion of an Object to an Object of other class
Last Updated: 09 January 2019
Given a PHP class object and the task is to convert or cast this object into object of another class.Approach 1: Objects which are instances
...read more
Web Technologies
PHP-basics
PHP-OOP
PHP
PHP Programs
How to merge two PHP objects?
Last Updated: 23 September 2024
Merging two PHP objects means combining their properties and values into a single object. This is typically done by copying the properties f
...read more
Web Technologies
PHP-OOP
Picked
PHP
PHP Programs
Abstract Classes in PHP
Last Updated: 15 March 2025
Abstract classes in PHP are classes that may contain at least one abstract method. Unlike C++, abstract classes in PHP are declared using th
...read more
Technical Scripter
Web Technologies
PHP-OOP
PHP
When do we need Interfaces in PHP?
Last Updated: 29 December 2022
Interface are definitions of the public APIs that classes (implementing an interface) must implement. It is also known as contracts as an in
...read more
Web Technologies
PHP-OOP
Picked
PHP
Traits vs. Interfaces in PHP
Last Updated: 05 August 2019
The main difference between the Traits and Interfaces in PHP is that the Traits define the actual implementation of each method within each
...read more
Web Technologies
PHP-OOP
Picked
PHP
PHP | Interface
Last Updated: 03 November 2018
An Interface allows the users to create programs, specifying the public methods that a class must implement, without involving the complexit
...read more
Web Technologies
PHP-OOP
PHP
PHP Objects
Last Updated: 17 April 2025
An object in PHP is an instance of a class. Objects are used to store data (properties) and define behaviors (methods) that can be used with
...read more
Web Technologies
PHP-OOP
PHP
PHP Classes
Last Updated: 19 April 2025
A class defines the structure of an object. It contains properties (variables) and methods (functions). These properties and methods define
...read more
Web Technologies
PHP-OOP
PHP
1
2
>>
Last
1
2
>>
Last
1
2
>>
Last
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 !