maxxd
I did the chapters 1-4
thank you NogDog
function addIt(int $a, int $b): int {
return $a + $b;
}
$result = addIt(12,13);
echo $result;
echo "<br>";
function addIt1(float $a, float $b): float {
return $a + $b;
}
$result1 = addIt1(12.1,13.3);
echo $result1;
echo "<br>";
function addIt2(int $a, string $b): int {
return $a + $b;
}
$result2 = addIt2(12,"13");
echo $result2;
I do not understand the right : int
function addIt(int $a, int $b): int