
Untitled
By: a guest on
Jan 18th, 2013 | syntax:
PHP | size: 0.33 KB | hits: 28 | expires: Never
<?php
$item_amount = 20;
$item_count = $feed->get_item_quantity();
$item_list = array();
for ($i=0;$i<$item_amount;$i++) {
$random_item = $feed->get_items(rand(0,$item_count));
if (!in_array($random_item, $item_list)) {
$item_list[] = $random_item;
echo $random_item . "</br>";
} else {
$i--;
}
}
?>