Hyvor Developer
  Home   Download   Copy
Code
<?php
function sum($num1, $num2) : float {
	return $num1 + $num2;
}
var_dump(sum(5, 2)); // float value is returned
Result