Add note on usage of getArrayCopy to get a copy of the results as an actual...
Add note on usage of getArrayCopy to get a copy of the results as an actual Array as opposed to an ArrayObject
on the weekend I was working with some code that was doing a test to make sure I was passing an array using is_array($var)
but this failed for ArrayObject because whilst you can access like an array its still an Object under the hood. I was able to get the results as an actual array by doing $result->getArrayCopy()
and figured its useful to add a note about it here