主页
PHP
PHP 函数
tryphp_func_non-strict
运行 ❯
×
更改方向
保存代码
更改主题
<?php function addNumbers(int $a, int $b) { return $a + $b; } echo addNumbers(5, "5 days"); // since strict is NOT enabled "5 days" is changed to int(5), and it will return 10 ?>
10