PHP 7
1-Scalar Type Declarations
function returnsum(float $x, float $y)
{
return $x + $y;
}
echo returnsum(6, "8 days");
2- Return Type Declarations
function add($a, $b): float {
return $a + $b;
}
3-Constant Arrays Using define()
Related
How to optimize PHP code ?