<?php function foo(int $foo, int $bar) { echo $foo + $bar; } var_dump(foo(1, 1)); // affiche 2 var_dump(foo(1, '1')); // affiche 2 (conversion car mode coercitif) var_dump(foo('a', 1));
You have javascript disabled. You will not be able to edit any code.