ajout fonction hello

This commit is contained in:
Gashila 2021-10-26 13:27:26 +02:00
parent 8c97b78259
commit 0697f1d98a

View File

@ -2,5 +2,17 @@
$variable1 = 'endmove'; $variable1 = 'endmove';
echo "Bonjour $variable1"; $variable2 = 'gashila';
hello($variable1, 19);
hello($variable2, 20);
function hello(string $pseudo, int $age) : void
{
echo "Bonjour $pseudo tu as $age ans ! <br>";
}