/** * Return sum of $a and $b * @param int $a * @param int $b * @return int Sum of $a and $b */ function get_sum(int $a, int $b): int { return $a + $b; }

PHP function documentation. Code example
Approved. Code works!
This is exactly the working code that is verified by the moderator or site administrators
More
lil-code© | 2022 - 2025
Go Top