ajout fonction hello
This commit is contained in:
@@ -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>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user