Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. function test($condition)
  3. {
  4.     $results = Array(a,b,c,d,e,f,g,h,i,j);
  5.     return $results[$condition+1];
  6. }
  7.  
  8. echo test(mt_rand(1, 10));
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement