<?php function f(Traversable $x) { foreach ($x as $k => $v){ echo $v; } } $a = json_decode('{"a": 1, "b": 2, "c": 3}'); $arrayobject = new ArrayObject($a); f($arrayobject);
You have javascript disabled. You will not be able to edit any code.