<?php #declare(strict_types=1); function a(int $num) { return $num; } $n = 3.0; var_dump((float)$n); var_dump(a($n));
You have javascript disabled. You will not be able to edit any code.