PHP Classes & Objects - Typed Properties - Constructors & Destructors - Full PHP 8 Tutorial

preview_player
Показать описание
In this lesson, you will learn all about classes & objects in PHP. How to create classes & objects, set properties, typed properties, their visibility, create methods, learn about method chaining, what are constructors & destructors & so on. Make sure to watch it till the end since I cover some important things that you should be aware of when working with destructors.

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.2

CHAPTERS
00:00 - Objects & Classes
00:56 - Creating class & object
02:58 - Class properties
04:43 - Typed properties
07:50 - Class constructor, $this, & constructor arguments
09:54 - Methods
11:34 - Method chaining
13:44 - Creating objects using variables
14:05 - Creating multiple objects of the same class
14:40 - Class destructor
18:05 - stdClass & object casting
Рекомендации по теме
Комментарии
Автор

The whole series is a goldmine! Thank you!

alexvel
Автор

I am in love with this series... This is a great intro to PHP.

JohnnyBigodes
Автор

This is probably the best structured, explained and usable tutorial ever! And I went through many, many courses. This one is first to give me full explanation.

Vendubak
Автор

Been to OOP PHP for almost two years ago, but this journey seems interesting, Many Thanks!

dameeldiop
Автор

man this series is just amazingly, written, done, and so much informative, thank you sir

karimlaouchedi
Автор

Wow, you have some amazing teaching skills with PHP. Thank you for teaching the "correct" and "best practice" way of doing things. I would only suggest that you slow down your talking. Hard to follow :).

AlaskaWild
Автор

Interesting way of using an otherwise void returning methods as self returning ones to allow chaining. I'm learning a lot about PHP 8 as well as programming in general while using analogies with the languages I already know with your tutorials. Thanks for these series.

mezdelex
Автор

Ah there is alot of things.. i should watch 2-3 time to understand..

keyholderofpurgatory
Автор

Hi all, the vs code extension "phpfmt - PHP formatter v1.0.31" does not work when using type-hinting. We reported the bug and author does not seem to be bothered. His last update was in Jan 2022. Install PHP Tools.

truthteachers
Автор

This is an amazing series!! Super helpful. Huge thanks!

alexisacosta
Автор

By far this is the best php oop videos i've came across.

MaximBordyug.
Автор

This is little advanced and tough for me :(

techjavaid
Автор

Bro, you really did a good job! Much better on those premium tutorials out there!
Great work and keep it coming. Looking forward to Symfony after your Laravel course.

chevzonyt
Автор

you know so much.. thank you for sharing the knowledge! 💗

OlgaFB
Автор

the series is very awesome thank you so much

amraldroubie
Автор

What is it called when you create a function with a parameteer and a custom type ?

function(Product $item){

CONTENT;

}

lucasferreira
Автор

can i ask why type-hinting is recommended? is it for code readability or another reason?

sarc
Автор

6:50 Isn't "uninitialized" a separate data type then in PHP? Looks like it is for me.

lairotuT-Tutorial
Автор

Very interesting video, first ever tutorial video that governs full utilisation of time. Very good, Please keep us providing such an awesome contents in future.

sanjugen
Автор

it's unbelievable that I am getting this level of content for FREE I love it!

dipankarsahoo