$items = array(
'apple',
'lemon',
'orange',
'grape',
'melon',
'watermelon',
'strawberry',
'banana',
'mango',
'lime'
);
$offset = 3;
$count = 5;
$innerIterator = new ArrayIterator($items);
$itarator = new LimitIterator($innerIterator, $offset, $count);
foreach ($iterator as $current) {
print $current;
}