DEV Community

Discussion on: How do you write your PHP validator?

Collapse
 
aleksikauppila profile image
Aleksi Kauppila

Good take.

Imo arrays generally are something that are better used as internal representation of data. In OOP, objects communicate with each others interfaces.

It's useful just to avoid using (or hide usage of) some language features to make more OO designs.