A Php program to print the float value using function. In this program we can print the Php program to print the float value using function. A function is defined as a relationship between a set of inputs and a set of possible outputs, with each input relating to exactly one outcome. The function notation f:XY can be used to denote the statement that f is a function from X to Y.
function addNumbers(float $a, float $b) : float
return $a + $b;
echo addNumbers(4.6, 5.2);