thanks everyone who mentioned about the object/array flag. Since I was only passing it to print_r it didn’t occur to me to switch it!

Michael: I didn’t know 5.3 was getting that new functionality, thanks for adding your comment :)