Quiz · Functions · lesson 5 of 11
Quiz — coercion and strict_types
Question 1 of 3
What happens when you run this program?
<?php
function square(int $n): int
{
return $n * $n;
}
echo square('4'), ' ', square(2.0), "\n";
echo square('four'), "\n";