2 ms·
Forgot about those. Also I didn't know that they were actually faster. In very simple classes I think the explicit getters and setters get the job done. Of cou
by voidr 15y ago
Forgot about those. Also I didn't know that they were actually faster.
In very simple classes I think the explicit getters and setters get the job done. Of course if you want to invoke it a lot your solution is a lot better.
I was mainly debating the notion of sacrificing readability and maintainability for the sake of a few microseconds, I feel it's wrong, if you care about speed that much, I think you shouldn't be using PHP in the first place.