How can I tell if a php object is rather a sequentially iterable object or an associative iterable object?
I would like to distinguish in the same way json_encode does: sequential objects are rendered as "[...]" while associative objects are rendered as "{...}". In particular a cakephp Query object should be detected as sequential.