Last active
October 18, 2019 10:57
-
-
Save stephanBerger/c20fbe072c249da98b57c27dfc9579c8 to your computer and use it in GitHub Desktop.
6. Les fonctions avec PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function writeSecretSentence(string $param1,string $param2) : string { | |
return $param1. " s'incline devant ". $param2 .".\n"; | |
} | |
echo (writeSecretSentence("Le loup","la lune")); | |
echo (writeSecretSentence("La loutre","la marmotte")); | |
echo (writeSecretSentence("Indiana Jones","la statue")); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment