I have a class with an internal array, and I'd like to overload the subscript operator to access the internal array and provide debug/logging actions.
Is there any possible way to overload the [] operator in PHP, or is there another option I should be chasing in this case?