Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- const BR = '<br />';
- $animeaux = ["Panda ", "Paresseux ", "Chien ", "Chat ", "Giraffe ", "Lion ", "Tigre ", "Elephant ", "Dromadaire ", "Cochon ", "Chimpanzé ", "Labrador "];
- $choses = ["Lune ", "Soleil ", "Terre ", "Vase ", "Temple ", "Fouet ", "Maison ", "Champ ", "Fleuve ", "Marais ", "Statue "];
- $idanimeaux = rand(0 , count($animeaux)-1);
- $idchoses = rand(0 , count($choses)-1);
- function func($PARAMETRE_1 , $PARAMETRE_2){
- $fonction = $PARAMETRE_1 . " s'incline face à " . $PARAMETRE_2 ;
- return $fonction;
- };
- echo func("Feu" ,"Bois" );
- /* Rentre ce que tu veux en parametre ou alors tu peux mettre ça :
- echo func($animeaux[$idanimeaux] ,$choses[$idchoses] ); Essaie :D ! */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement