I was just reading through a tutorial and they mentioned that Objects in php are just the better way of arrays. I am confused? Can someone clear the concept for me.
thanks
I was just reading through a tutorial and they mentioned that Objects in php
Share
That was more or less true for PHP 4, where there was no actual encapsulation. In fact, objects provide some benefits over plain array:
privateandprotectedmembers) – easier to preserve invariants.