We'll be exploring class properties, or characteristics of the object, in this tutorial. We'll build two classes filled with properties: a dog class and a car class. We'll then access and modify those properties. PHP now allows you to use type declarations so we'll explore property type declarations in our car class.
Read the full article on my website
https://www.dinocajic.com/php-class-properties/
Code for this tutorial
https://github.com/dinocajic/php-7-youtube-tutorials/blob/master/44%20Class%20Properties.php
Full Code
https://github.com/dinocajic/php-7-youtube-tutorials
PHP Playlist
https://www.youtube.com/playlist?list=PLbhJy0VhR6SAmoneYvF6Y_axQJKg7i50M
--
Dino Cajic
Author and Head of IT
Homepage: https://www.dinocajic.com
GitHub: https://github.com/dinocajic
Medium: https://medium.com/@dinocajic
Instagram: https://www.instagram.com/think.dino
LinkedIn: https://www.linkedin.com/in/dinocajic/
Twitter: https://twitter.com/dino_cajic
My Books
An Illustrative Introduction to Algorithms
https://www.amazon.com/dp/1686863268
Laravel Excel: Using Laravel to Import Data
https://amzn.to/4925ylw
Code Along With Me - PHP: From Basic to Advanced PHP Techniques
https://amzn.to/3M6tlGN