Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //String's array
- $strings = array('String1','String2','String3');
- //Random key
- $key = array_rand($strings);
- //display random string
- echo $strings[$key]; //when key = 0 result will be 'String1', when key = 1 result will be 'String2', when key = 2 result will be 'String3',
- // by Touhid
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement