Closed mitmelon closed 3 years ago
I'm not sure if I understand but you can always use Generator API to access the results without foreach
. See https://www.php.net/manual/en/class.generator.php, more specifically methods rewind()
, valid()
, next()
, key()
and current()
Is it possible for Jsonmachine to return a response without using foreach?