From 6cf914697966384e01998c4b00b3df83efaa516d Mon Sep 17 00:00:00 2001 From: gashila Date: Tue, 26 Oct 2021 22:18:25 +0200 Subject: [PATCH] ajout fonction --- functions.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 functions.php diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..e4d20d6 --- /dev/null +++ b/functions.php @@ -0,0 +1,22 @@ +"; +} + + +function verification_age(int $age) : string +{ + if ($age >= 18) { + return "majeur"; + } else { + return "mineur"; + } +} + +