From 0697f1d98af54317ff187fd0a2fd87c6391f6077 Mon Sep 17 00:00:00 2001 From: gashila Date: Tue, 26 Oct 2021 13:27:26 +0200 Subject: [PATCH] ajout fonction hello --- beginning.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/beginning.php b/beginning.php index 4e55b4a..30003c9 100644 --- a/beginning.php +++ b/beginning.php @@ -2,5 +2,17 @@ $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 !
"; +} +