Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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--;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement