$return = $query->execute(); $return = $return->as_array(); return $return[0];
Array (
[0] = Array (
...
)
)
return $query->execute()->current();
Array(
['username'] => 'Peter',
['country'] => 'The Netherlands'
)
Thomas Edwards wrote on Friday 25th of November 2011:That's perfect Peter. Is that in the Docs anywhere, I couldn't see it?
It looks like you're new here. If you want to get involved, click one of these buttons!