2. 1.What Is PHP?
PHP:Hypertext Preprocessor.
PHP is a server side scripting language that
is embedded in HTML. It is used to manage
dynamic content, databases, session tracking,
even build entire e-commerce sites.
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
2
4. 2.Why You Choose PHP?
Open Source
High Performing
Flexible and Dynamic
Effective Frameworks And CMS
Large Community
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
4
5. 3. What's the latest version of php?
It’s 7.4.4 => 19 Mar 2020
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
5
6. 4. What are the major difference
between PHP 5 and PHP 7?
Performance
Declaring The Return Type
Error Handling
Spaceship Operator
Anonymous Class
New Operators
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
6
7. 5. Is PHP a strongly typed language?
No. PHP is a weakly typed or loosely typed
language
Sample code:
• $var = "Hello"; //String
• $var = 10; //Integer
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
7
8. 6.What is a class?
Collection Of Data member and member
Functions.
Example:
class Person{
public $name;
public $age;
}
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
8
9. 7. What is a Object?
Object is real time entity.
Object has some properties and behaviors.
$obj = new MyClass();
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
9
10. 8.What is Constructor and
Destructor?
Constructor:
Constructor is a special type of function
which will be called automatically
whenever there is any object created from
a class.
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
10
11. If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
11
Destructor:
Destructor is a special type of function which
will be called automatically whenever any
object is deleted or goes out of scope.
12. 9.What are access modifiers?
Public
Private
Protected
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
12
13. 10. What is Encapsulation?
Wrapping up member variables and methods
together into a single unit (i.e. Class) is called
Encapsulation.
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
13
14. 11. What is Abstraction?
Abstraction is a concept in which
implementation details are hidden..
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
14
15. 12.Explain about polymorphism?
One thing, can use in different forms
1)Function Overloading
2)Function Overriding
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
15
16. 12.Explain about polymorphism?
One thing, can use in different forms
1)Function Overloading
2)Function Overriding
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
16
17. 13. Magic Methods in PHP
Construct
Destruct
Clone
Call
Autoload
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
17
18. 14.Difference Between Interfaces &
Abstract Class
Interface:
An interface is an agreement or a contract.
When a class implements an interface, It
means it contains same public methods of an
interface with their implementation.
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
18
19. If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
19
Abstract class Interface
In abstract class a method must be
declared as abstract. Abstract methods
doesn’t have any implementation.
In interface all the methods by default are
abstract.
Abstract class can also contain member
variables and concrete
functions/methods.
Interfaces cannot contain any member
variables and concrete functions/methods
except constants.
An Abstract methods can be declare
with access modifiers like public,
protected etc. Concrete Class which is
extending the abstract class must be
defined with the same or visibility.
All methods declared in an interface must
be public.
A class can Inherits only one Abstract
class and Multiple inheritance is not
possible for Abstract class.
A class can implements many interfaces
and Multiple interface inheritance is
possible.
Only complete member of abstract class
can be static.
Memebrs of Interface can not be static.
20. 15.What is STATIC keyword and what
is it's use in PHP ?
static member
static Function
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
20
21. 16.What is Traits in PHP?
Traits are a mechanism for code reuse in single
inheritance languages such as PHP.
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
21
22. 17. What are the advantages of
object oriented programming?
Code Resusability
Modularity
Flexibility
Maintainability
Security
Testability
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
22
23. About Us
We Are Proving Professional It Training. If you
Want to learn Any New Technology you can
contact us on :
Contact On :
https://versionup.in/
Call On :+91 8780656929
If You want to Learn PHP Contact On +91 8780656929
https://versionup.in/
23