Object Oriented PHP for Beginners: Steps 1 – 7Step 1:Directly accessing properties – don’t do it!You don’t have to use methods to access objects properties; you can directly get to them using the arrow operator (->) and the name of the variable.For example: with the property $name (in object $stefan) you could get its value like so:$name...
Showing posts with label oop's. Show all posts
Showing posts with label oop's. Show all posts
27 October, 2018
Object Oriented PHP for Beginners: Steps 1 – 6
Programing Coderfunda
October 27, 2018
object, oop's, php
No comments
Object Oriented PHP for Beginners: Steps 1 – 7
Step 1:
Directly accessing properties – don’t do it!
You don’t have to use methods to access objects properties; you can directly get to them using the arrow operator (->) and the name of the variable.
For example: with the property $name (in object $stefan) you could get its value...
THE DIFFERENCE BETWEEN CLASSES AND OBJECTS IN PHP
Programing Coderfunda
October 27, 2018
class, object, oop's, oops, php
No comments
The standards for WordPress development are slowly moving from turns of procedural code that lack proper abstraction to more SOLID and object-oriented code.That’s a step in the right direction, but let’s not forget two important things that often get left out of these discussions: putting code in a class does not make it “object-oriented,”...