You are viewing a single comment's thread from:

RE: PHP: Use associative arrays basically never

in #php6 years ago

Nice! Yeah, the ability to encapsulate behavior is one of the most obvious benefits of a class but there's been a general belief in PHP for years that doing so was more expensive than doing it "manually". That may have been true once, but it's definitely not true today. In fact quite the opposite.