SHARE
TWEET

Untitled

a guest Oct 13th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $armes=["poing","pistole","fouet"];
  4. $indyArme="asdas";
  5. $adversaireArme=$armes[rand(0,2)];
  6.  
  7. switch($adversaireArme)
  8. {
  9.     case "poing":
  10.         $indyArme=$armes[1];
  11.         break;
  12.     case "pistole":
  13.         $indyArme=$armes[0];
  14.         break;
  15.     case "fouet":
  16.         $indyArme=$armes[2];
  17.     default:
  18.         $indyArme=$armes[2];
  19. }
  20.  
  21.  
  22. echo $indyArme;
  23. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top