The final keyword is a non-access modifier that prevents classes, attributes, and methods from being changed (impossible to inherit or override). When you want a variable to constantly store the same value, such as PI, the final keyword comes in handy (3.14159...). The last keyword is referred to as a "modifier."
The caller object is referred to via the reserved keyword $this in PHP. It's normally the object that the method belongs to, but it could also be another object if the method is called statically from a secondary object's context.
The new keyword is used to construct class objects.
This is used to access non-static or object variables or methods, while self is used to access static or class variables. So, when you need to access something that belongs to a class, use self, and when you need to access a property that belongs to the class's object, use $this.
Learner's Ratings
4.4
Overall Rating
65%
21%
7%
4%
3%
Reviews
R
Rahul Kumar Yadav
5
I'm very very happy Meet sir thanks
سید انوشہ
4
to good greate job
B
biramani thangjam
5
amazing concept....
A
Asif Nadeem
5
Full Recommended Course Contents
Y
Yadav Aakash
5
Great 👍 one of the best course
#
# krish
5
sir forum wala page work nahi kr raha hai kya karu bhautt sare questions hai mere paas
O
Om Sunil Gaikwad
5
what a course
A
Arjun Chauhan
5
Great 👍 one of the best course
Z
zeeshan ahmad
5
Too Good, but I do not find the video course codding.?
M
Mrinal Padhi
5
Explains you everything perfectly and also provides study materials to you so that you can practice by your own if facing any errors. the are responds to your query also.
Share a personalized message with your friends.