You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
196 B

<?php
declare(strict_types=1);
function func(int $a, int $b)
{
echo ($a + $b);
}
func(3.8 ,2); //3.8是float类型,a是int,在strict_types=1不能类型转换
?>