What Are PHP Magic Methods & How They Work - Full PHP 8 Tutorial

preview_player
Показать описание
In this video, you'll learn about PHP's magic methods, how they work & when they get called. Magic methods are exactly what they are called, they are "magic" in a way that you don't call these methods the way you call regular methods. Instead, these magic methods get triggered automatically after a certain action or event.

SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
THANK YOU!

LESSON 2.12

RESOURCES

CHAPTERS
00:00 - Magic methods
00:49 - __get & __set
05:21 - __isset & __unset
07:45 - __call & __callStatic
11:51 - __toString
13:45 - __invoke
15:08 - __debugInfo
Рекомендации по теме
Комментарии
Автор

Best php magic method tutorial and best php course, better than paid bootcamps

federicobau
Автор

A real road map to learn PHP. Sometimes, I have to spend good time offline to grasp and have chewed understanding of your tutorial. Which is expected. Greatgreat guidance!

chenting
Автор

This channel is the channel with the most value on YouTube, and on the web in general, by far

ינוןאלבז-כז
Автор

Super professional video tuts... so many details...even mid devs find a lot of interesting things. What a job has been done! Thank you! Definetly donate, if i find a job)

bewildstudio
Автор

"Thank you, my teacher Gio! Your passion for teaching inspires me to keep pushing forward."

wesammohammed
Автор

7 pages of notes on this video (with code examples) :D You are on another level with you knowledge and ability to clarify compared to all of the other sources.

zko
Автор

This is how to make php great again, very good content

non
Автор

Sir also include exception handling in this oop tutorial. Your tutorials make doubts crystal clear

saugmaddox
Автор

man your vidoes make everything clear thank you so much for this great content.

sahbikardi
Автор

Man you keep on rockin! Starting at 00:00 I must admit that I thought that this video is going to be of no interest to me.
I was wrong.
__invoke & __toString are most interesting to me. Where __call & __callStatic are not short after.

Wonderful, thank you Gio 🏆

karolzamojcin
Автор

There are plenty of magic methods. Thanks for this tutorial!

Vitalii-mr
Автор

Watched thrice already. Each time things were clearer but I still didn't get some magic methods (__call and __callStatic). But you did say not to worry if we don't get it as of now. Thanks alot Gio

Zubbee
Автор

Gamarjoba, Gio! Great tutorial! Thank you for your hard work! TM from PL :-)

tomekmacccc
Автор

thank you @Gio,
in 14:51 you said you needed class with one method than why didn't you just declare a function instead ?

AbdouAbdou-huun
Автор

Another great tutorial. Thank you for sharing all these concepts

Nooneandeveryone
Автор

Thanks for your great tutorial. I request to you that can you please make your playback little slow.? sometimes I really get over whelmed by your speaking speed.

shaikhalamin
Автор

Magic methods are very interesting lesson. thank you

CarlosOrtiz-szpp
Автор

Thanks for the great video!

I think using the magic methods should be done when someone builds a framework or something like that. I see no reason to use the_get or _set_ for example on a project that has business logic, imagine unsetting or setting properties on the fly...

SaiyanJin
Автор

Great!! I request you to please create the course for laravel and explain whatever OOPS concept is used there.

vkmishra.singer
Автор

Amazing series thank you. After years with php still something to learn. Can you deep dive to laravel to show those magic methods in action?

kvanca