Open link in next tab
Avoid the AOP: Array-Oriented Programming
https://wendelladriel.com/blog/avoid-the-aop-array-oriented-programming
Arrays are a convenient way of organizing and passing data in PHP applications, but should we do it? In this article, I'll show the cons of abusing the use of associative arrays and a simple alternative for that.
An interesting article that explains the importance of using DTOs (Data Transfer Objects) instead of plain associative arrays.