PHP class data implementation
- by Bakanyaka
I'm studying OOP PHP and have watched two tutorials that implement user login\registration system as an example. But implementation varies. Which way will be more correct one to work with data such as this?
Load all data retrieved from database as array into a property called something like _data on class creation and further methods operate with…