ajout fonction hello
This commit is contained in:
parent
8c97b78259
commit
0697f1d98a
@ -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>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user