I'm using a PHP framework that returns SQL results as iteratable objects. Problem is I have a SQL query that that returns one row and I don't want to have to create a foreach-loop to get at the first - and only - element.

So how do I do it?

These don't work:

$obj->item(0)->propName;
$obj->next()->propName;
$obj[0]->propName;

Any ideas?

Edit
Report