This is better suited for <a href="http://php.net/for">http://php.net/for</a> for() loops, whereas get_items() is better suited for <a href="http://php.net/foreach">http://php.net/foreach</a> foreach() loops.
Parameters
$keyintoptional
The item that you want to return. Remember that arrays begin with 0, not 1Default: 0
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.7.7 tag, from src/wp-includes/SimplePie/src/SimplePie.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.