Object assignment, cloning objects in PHP - OOP in PHP | Part 1.1

preview_player
Показать описание
In the following video, we will understand how to clone an object.
And how to assign an object with reference.

Introduction to OOP in PHP

Creating classes, properties and methods

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

I am from Argentina, I do not speak English, but it is very well understood as you explain! I congratulate you the videos are very supportive, especially those of Yii2. Regards! Ahead!

NicoILeone
Автор

Thank you for short and explanatory videos.

somesh
Автор

kudos man, this is very comprehensive :) well done.

joaodfardilha
Автор

@2:00 How come if we do unset($car) here instead of $car = null, $car2 still remains?

nemac
Автор

Nice informational and brief.
Thanks, keep it up!

yovelinpanayotov
Автор

During var_dump() function, after the name of the Object, the hash sign with number tells us if we have the same Object or two different Objects. Because PHP uses IDs.
This information was missing for me.

piotrd.
join shbcf.ru