This is a basic introduction to Object Oriented programming. Here, I introduce classes, public and private variables and methods, magic methods, and method chaining. I use a diagram to show the concept visually before creating the code, and then I test it in the terminal. I also show variable casting to ensure that information is properly handled, even when it is of the wrong type. As always, I will post on my site, kloplop321.com/php-tutorials/ with the source code and any resources I use. Please make sure to subscribe if you like my tutorials, and feel free to share them with others. kloplop321.com
Sign in or sign up to post comments.