i just found out about iterators. i have made this simple example but how can i show just one element of the object?
in procedural fashion i use echo $row['fname'] for example.
but with the iterator how cat i target just one element?
i attach the iterator test i made:
$iterator = new LimitIterator($result);
foreach ($iterator as $row)
foreach ($row as $field => $value)
echo "$field: $value<br/>";