Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2. const BR = '<br />';
  3.  
  4. $animeaux = ["Panda ", "Paresseux ", "Chien ", "Chat ", "Giraffe ", "Lion ", "Tigre ", "Elephant ", "Dromadaire ", "Cochon ", "Chimpanzé ", "Labrador "];
  5. $choses = ["Lune ", "Soleil ", "Terre ", "Vase ", "Temple ", "Fouet ", "Maison ", "Champ ", "Fleuve ", "Marais ", "Statue "];
  6. $idanimeaux = rand(0 , count($animeaux)-1);
  7. $idchoses = rand(0 , count($choses)-1);
  8.  
  9.  
  10. function func($PARAMETRE_1 , $PARAMETRE_2){
  11. $fonction = $PARAMETRE_1 . " s'incline face à " . $PARAMETRE_2 ;
  12. return $fonction;
  13. };
  14.  
  15.  
  16. echo func("Feu" ,"Bois" );
  17.  
  18. /* Rentre ce que tu veux en parametre ou alors tu peux mettre ça :
  19. echo func($animeaux[$idanimeaux] ,$choses[$idchoses] ); Essaie :D ! */
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement