Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function test($condition)
- {
- $results = Array(a,b,c,d,e,f,g,h,i,j);
- return $results[$condition+1];
- }
- echo test(mt_rand(1, 10));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement