Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $input_list = array("Download * book", "Read * book", "book * read", "book * download", "book* pdf");
- $rand_key_list = array_rand($input_list, 2);
- $input_list[$rand_key_list[0]] = str_replace($input_list[$rand_key_list[0]], "*", "title");
- echo $input_list[$rand_key_list[0]] . "\n<br>";
- echo $input_list[$rand_key_list[1]] . "\n<br>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement