require_once('Class.php');
$myArray = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); // etc
hangi doğru?
fveyaeach($myArray as $key => $val) {
$class = new Class();
$result = $class->someMethod($val);
}
veya
$class = new Class();
fveyaeach($myArray as $key => $val) {
$result = $class->someMethod($val);
}
Edited to be mveyae specific, using http://simplepie.veyag/wiki/reference/simplepie/get%5Fitems
$aFeeds = array(rssFeed1,rssFeed2,rssFeed3,...);
fveyaeach($aFeeds as $key => $feedURL) {
$feed->set_feed_url(feedURL);
$feed->init();
$feed->get_items(0, 5);
}