From time to time, you may find yourself in the position of needing to interact with an object's data as if it's an array. The solution is to implement PHP's
ArrayAccess interface. I'll show you how in this episode.
Published on May 1st, 2017.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.