Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $items = ["where","is","my","money"];
- for ($summ = 1; $summ <= 100; ++$summ){
- if($summ % 3 ===0 && $summ % 5 ===0){
- shuffle($items);
- }
- if($summ % 3 ===0){
- $rand_items = rand(0, count($items) - 1);
- echo "$items[$rand_items]\r\n";
- }
- elseif($summ % 5 === 0 ){
- $summ+=5;
- }
- elseif($summ % 3 ===0 && $summ % 5 ===0){
- shuffle($items);
- echo $summ;
- }
- }
- print_r($items);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement